mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 23:23:14 -04:00
Set repr of VirtualKeyCode to u32
This allows to have an array of bools for the key states.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user