diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:22 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:22 +0100 |
commit | 8c1406f7a42822d1b020cc672ed99d02eb34d22f (patch) | |
tree | e9b3c21520786d2cb9819e46c504e759e4d2d695 /stockton-input/src/manager.rs | |
parent | b380ad94647c9bc446d5a76bb16dcc286077275a (diff) |
feat(render-bsp): process into inputmanager
Diffstat (limited to 'stockton-input/src/manager.rs')
-rw-r--r-- | stockton-input/src/manager.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stockton-input/src/manager.rs b/stockton-input/src/manager.rs index 2b62a93..4d2d001 100644 --- a/stockton-input/src/manager.rs +++ b/stockton-input/src/manager.rs @@ -24,14 +24,14 @@ pub enum InputMutation { } /// A key being pressed or released -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Copy)] pub enum Action { - KeyPress(u8), - KeyRelease(u8), + KeyPress(u32), + KeyRelease(u32), } impl Action { - pub fn keycode(&self) -> u8 { + pub fn keycode(&self) -> u32 { match self { Action::KeyPress(x) => *x, Action::KeyRelease(x) => *x, |