mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 15:13:13 -04:00
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user