diff options
author | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-10-30 14:01:52 +0100 |
---|---|---|
committer | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-11-06 19:09:07 +0100 |
commit | 2be71306ec40cd8cc660bbd4160103aa485b2999 (patch) | |
tree | 82c316d17fe37a458e5ec3d3709a90cb28c9a8c6 /src/win32 | |
parent | 9926e179d6f8ebbc37625dce6682167c37c3a998 (diff) | |
download | glutin-2be71306ec40cd8cc660bbd4160103aa485b2999.tar.gz glutin-2be71306ec40cd8cc660bbd4160103aa485b2999.zip |
Remove key modifiers in KeyboardInput
Diffstat (limited to 'src/win32')
-rw-r--r-- | src/win32/init.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/win32/init.rs b/src/win32/init.rs index beef44b..a380c84 100644 --- a/src/win32/init.rs +++ b/src/win32/init.rs @@ -485,18 +485,18 @@ extern "stdcall" fn callback(window: ffi::HWND, msg: ffi::UINT, }, ffi::WM_KEYDOWN => { - use events::{KeyboardInput, KeyModifiers, Pressed}; + use events::{KeyboardInput, Pressed}; let scancode = ((lparam >> 16) & 0xff) as u8; let vkey = event::vkeycode_to_element(wparam); - send_event(window, KeyboardInput(Pressed, scancode, vkey, KeyModifiers::empty())); + send_event(window, KeyboardInput(Pressed, scancode, vkey)); 0 }, ffi::WM_KEYUP => { - use events::{KeyboardInput, KeyModifiers, Released}; + use events::{KeyboardInput, Released}; let scancode = ((lparam >> 16) & 0xff) as u8; let vkey = event::vkeycode_to_element(wparam); - send_event(window, KeyboardInput(Released, scancode, vkey, KeyModifiers::empty())); + send_event(window, KeyboardInput(Released, scancode, vkey)); 0 }, |