mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2025-01-11 11:31:32 +11:00
Added backquote/tilde key
This commit is contained in:
parent
aa5d84eb2b
commit
6fd476783c
|
@ -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")]
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue