Compare commits

...

2 Commits

Author SHA1 Message Date
paring ea8027ee20
fix: EventData type 2022-11-06 14:12:57 +09:00
paring d2f03bac56
chore: add other on enum 2022-11-06 14:08:37 +09:00
2 changed files with 6 additions and 2 deletions

View File

@ -124,4 +124,6 @@ pub enum VK {
MouseMiddle, MouseMiddle,
MouseX1, MouseX1,
MouseX2, MouseX2,
Other(u16),
} }

View File

@ -1,9 +1,11 @@
use std::time::SystemTime; use std::time::SystemTime;
use crate::keycodes::VK;
#[derive(Debug)] #[derive(Debug)]
pub enum EventData { pub enum EventData {
KeyPress(u16), KeyPress(VK),
KeyRelease(u16), KeyRelease(VK),
} }
#[derive(Debug)] #[derive(Debug)]