summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glfw/src/window.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/glfw/src/window.rs b/glfw/src/window.rs
index eaa0c56..5c30c16 100644
--- a/glfw/src/window.rs
+++ b/glfw/src/window.rs
@@ -5,7 +5,7 @@ use std::io::{stdout, Write};
use std::ptr::null_mut;
use bitflags::bitflags;
-use util_macros::FromRepr;
+use util_macros::{FromRepr, VariantArr};
use crate::init::{initialize, Glfw};
use crate::{get_glfw_error, Error};
@@ -525,7 +525,8 @@ pub enum CursorMode
Normal = crate::ffi::GLFW_CURSOR_NORMAL,
}
-#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, FromRepr)]
+#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, FromRepr, VariantArr)]
+#[variant_arr(name = KEYS)]
#[repr(i32)]
pub enum Key
{