mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Set repr of VirtualKeyCode to u32
This allows to have an array of bools for the key states.
This commit is contained in:
parent
544ee13bf3
commit
c4cdb9aa5c
|
@ -138,6 +138,7 @@ pub enum MouseScrollDelta {
|
|||
}
|
||||
|
||||
#[derive(Debug, Hash, PartialEq, Eq, Clone, Copy)]
|
||||
#[repr(u32)]
|
||||
pub enum VirtualKeyCode {
|
||||
/// The '1' key over the letters.
|
||||
Key1,
|
||||
|
|
Loading…
Reference in a new issue