aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32/init.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/init.rs')
-rw-r--r--src/win32/init.rs8
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
},