Set repr of VirtualKeyCode to u32

This allows to have an array of bools for the key states.
This commit is contained in:
torkleyy 2017-04-12 15:49:14 +02:00
parent 544ee13bf3
commit c4cdb9aa5c

View file

@ -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,