aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/win32
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-07-19 15:00:38 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-07-19 15:03:48 +0200
commitb573a161a9474e85a420a00f533a38e55afda720 (patch)
tree2ce42d0a8dca26aa24e4c70d77ca722e1cc6ccfe /src/api/win32
parent896640f2e0fd659e952e492c1b74841624db8d08 (diff)
downloadglutin-b573a161a9474e85a420a00f533a38e55afda720.tar.gz
glutin-b573a161a9474e85a420a00f533a38e55afda720.zip
Fix the windows build
Diffstat (limited to 'src/api/win32')
-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),