diff options
| author | Arne Dußin | 2021-01-08 16:08:09 +0100 |
|---|---|---|
| committer | Arne Dußin | 2021-01-08 16:08:09 +0100 |
| commit | b8a9c3464a7ec4c60073fb4441129fa97b36442a (patch) | |
| tree | d1147f7b017e7ff7c0fc4895501fe030b038780a /src/main.rs | |
| parent | 60327dd3ef85a263173e6275cb122c9191c030fe (diff) | |
| download | graf_karto-b8a9c3464a7ec4c60073fb4441129fa97b36442a.tar.gz graf_karto-b8a9c3464a7ec4c60073fb4441129fa97b36442a.zip | |
Fix CLI not capturing keyboard
This is not a very nice solution and is due to limitations of raylib.
Since I want to change the way input is handled in the future this is an
okay solution, but when overhauling the input needs to be changed.
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 105bb44..4d6f4ba 100644 --- a/src/main.rs +++ b/src/main.rs @@ -127,12 +127,13 @@ fn main() { cli.update(&mut rl, &mut editor); dimension_indicator.update(editor.map_mut(), &mut rl); - snapper.update(&mut rl); + snapper.update(&mut rl, cli.active()); editor.update( &mut rl, &transform, &snapper, ToolSidebar::mouse_captured(screen_height as u16, last_mouse_pos.into()), + cli.active(), ); // Drawing section |
