aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/win32/event.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/win32/event.rs b/src/api/win32/event.rs
index 4c8f4f3..6fbde81 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<VirtualKeyCode> {
- match code {
+ match code as i32 {
//winapi::VK_LBUTTON => Some(VirtualKeyCode::Lbutton),
//winapi::VK_RBUTTON => Some(VirtualKeyCode::Rbutton),
//winapi::VK_CANCEL => Some(VirtualKeyCode::Cancel),