From c4cdb9aa5c3ad3938ab5b7a05c482f109304abe8 Mon Sep 17 00:00:00 2001 From: torkleyy Date: Wed, 12 Apr 2017 15:49:14 +0200 Subject: [PATCH] Set repr of VirtualKeyCode to u32 This allows to have an array of bools for the key states. --- src/events.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/events.rs b/src/events.rs index 851ef0c6..2fd5141b 100644 --- a/src/events.rs +++ b/src/events.rs @@ -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,