evdev
evdev copied to clipboard
Create InputEvent rom InputEventKind
In addition of the current constructors, a new constructor could be added:
fn from_kind(kind: impl Into<InputEventKind>, value);
impl From<Key> for InputEventKind {}
impl From<AbsoluteAxisType> for InputEventKind {}
...
InputEvent::from_kind(Key::BTN_A, 1);