Merge pull request #5 from kondrak/windows-rs

Added backquote/tilde key
This commit is contained in:
Daniel Collin 2015-12-22 12:56:53 +01:00
commit ab849a63d4
2 changed files with 3 additions and 1 deletions

View file

@ -115,6 +115,7 @@ pub enum Key {
Right,
Up,
Apostrophe,
Backquote,
Backslash,
Comma,
@ -168,7 +169,7 @@ pub enum Key {
NumPadPlus,
NumPadEnter,
Count = 102,
Count = 103,
}
#[cfg(target_os = "windows")]

View file

@ -85,6 +85,7 @@ fn update_key_state(window: &mut Window, wparam: u32, state: bool) {
0x14D => window.keys[Key::Right as usize] = state,
0x148 => window.keys[Key::Up as usize] = state,
0x028 => window.keys[Key::Apostrophe as usize] = state,
0x029 => window.keys[Key::Backquote as usize] = state,
0x02B => window.keys[Key::Backslash as usize] = state,
0x033 => window.keys[Key::Comma as usize] = state,
0x00D => window.keys[Key::Equal as usize] = state,