Added backquote/tilde key

This commit is contained in:
Krzysztof Kondrak 2015-12-22 12:54:06 +01:00 committed by Krzysztof Kondrak
parent aa5d84eb2b
commit 6fd476783c
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,