diff --git a/src/api/win32/event.rs b/src/api/win32/event.rs index 4c8f4f36..6fbde816 100644 --- a/src/api/win32/event.rs +++ b/src/api/win32/event.rs @@ -2,7 +2,7 @@ use events::VirtualKeyCode; use winapi; pub fn vkeycode_to_element(code: winapi::WPARAM) -> Option { - match code { + match code as i32 { //winapi::VK_LBUTTON => Some(VirtualKeyCode::Lbutton), //winapi::VK_RBUTTON => Some(VirtualKeyCode::Rbutton), //winapi::VK_CANCEL => Some(VirtualKeyCode::Cancel),