stickup 0.2.9

A modular input device abstraction layer with HID and virtual device support.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! src/devices/event.rs
/// A discrete input event from a device (polled or injected).
#[derive(Debug, Clone)]
pub struct InputEvent {
    pub device_id: String,
    pub kind: InputKind,
}

#[derive(Debug, Clone)]
pub enum InputKind {
    AxisMoved { axis: u8, value: f32 },
    ButtonPressed { button: u8 },
    ButtonReleased { button: u8 },
}