mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
e7271709b2
# Objective I would like to know if an event was emitted because of "key repeats" or not. Winit already exposes this information, but it isn't sent along by Bevy, which this PR intends to address. ## Solution Expose [`winit::event::KeyEvent::repeat`](https://docs.rs/winit/0.30.3/winit/event/struct.KeyEvent.html#structfield.repeat) in [`bevy::input:⌨️:KeyboardInput`](https://docs.rs/bevy/0.14.0/bevy/input/keyboard/struct.KeyboardInput.html). ## Testing Just hold any regular key down and only the first event should have `KeyboardInput::repeat` set to `false`. Most OSs have "key repeat" enabled by default. --- ## Changelog - Added `KeyboardInput::repeat` signifying if this event was sent in response to a "key repeat" event or not. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |