From 2be71306ec40cd8cc660bbd4160103aa485b2999 Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Thu, 30 Oct 2014 14:01:52 +0100 Subject: Remove key modifiers in KeyboardInput --- src/win32/init.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/win32') 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 }, -- cgit v1.2.3