Add modified_key to keyboard::Event::KeyReleased
This commit is contained in:
parent
8b34f99b02
commit
32cdc99e92
2 changed files with 4 additions and 0 deletions
|
|
@ -36,6 +36,9 @@ pub enum Event {
|
||||||
/// The key released.
|
/// The key released.
|
||||||
key: Key,
|
key: Key,
|
||||||
|
|
||||||
|
/// The key released with all keyboard modifiers applied, except Ctrl.
|
||||||
|
modified_key: Key,
|
||||||
|
|
||||||
/// The physical key released.
|
/// The physical key released.
|
||||||
physical_key: key::Physical,
|
physical_key: key::Physical,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -262,6 +262,7 @@ pub fn window_event(
|
||||||
winit::event::ElementState::Released => {
|
winit::event::ElementState::Released => {
|
||||||
keyboard::Event::KeyReleased {
|
keyboard::Event::KeyReleased {
|
||||||
key,
|
key,
|
||||||
|
modified_key,
|
||||||
physical_key,
|
physical_key,
|
||||||
modifiers,
|
modifiers,
|
||||||
location,
|
location,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue