diff options
Diffstat (limited to 'engine/src/windowing.rs')
| -rw-r--r-- | engine/src/windowing.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/src/windowing.rs b/engine/src/windowing.rs index 805004a..4279148 100644 --- a/engine/src/windowing.rs +++ b/engine/src/windowing.rs @@ -1005,7 +1005,9 @@ impl ApplicationHandler for App KeyState::Released => KEY_RELEASED_BITS, }; - input.keys.set(key as usize, key_state_bits); + input + .keys + .clear_and_set(key as usize, key_state_bits, u8::MAX); } WindowEvent::CursorMoved { device_id: _, position } => { { |
