added physical_key to KeyReleased event

This commit is contained in:
ibaryshnikov 2024-09-26 17:13:32 +03:00
parent 75548373a7
commit 8b34f99b02
2 changed files with 4 additions and 0 deletions

View file

@ -36,6 +36,9 @@ pub enum Event {
/// The key released. /// The key released.
key: Key, key: Key,
/// The physical key released.
physical_key: key::Physical,
/// The location of the key. /// The location of the key.
location: Location, location: Location,

View file

@ -262,6 +262,7 @@ pub fn window_event(
winit::event::ElementState::Released => { winit::event::ElementState::Released => {
keyboard::Event::KeyReleased { keyboard::Event::KeyReleased {
key, key,
physical_key,
modifiers, modifiers,
location, location,
} }