Merge pull request #529 from tomaka/fix-win32

Fix the windows build
This commit is contained in:
tomaka 2015-07-19 16:13:24 +02:00
commit 8aa6fea832

View file

@ -2,7 +2,7 @@ use events::VirtualKeyCode;
use winapi; use winapi;
pub fn vkeycode_to_element(code: winapi::WPARAM) -> Option<VirtualKeyCode> { pub fn vkeycode_to_element(code: winapi::WPARAM) -> Option<VirtualKeyCode> {
match code { match code as i32 {
//winapi::VK_LBUTTON => Some(VirtualKeyCode::Lbutton), //winapi::VK_LBUTTON => Some(VirtualKeyCode::Lbutton),
//winapi::VK_RBUTTON => Some(VirtualKeyCode::Rbutton), //winapi::VK_RBUTTON => Some(VirtualKeyCode::Rbutton),
//winapi::VK_CANCEL => Some(VirtualKeyCode::Cancel), //winapi::VK_CANCEL => Some(VirtualKeyCode::Cancel),