Struct show_image::event::DeviceButtonEvent [−][src]
pub struct DeviceButtonEvent {
pub device_id: DeviceId,
pub button: ButtonId,
pub state: ElementState,
}
Expand description
A button on a device was pressed or released.
Fields
device_id: DeviceId
The ID of the device.
The button that was pressed or released.
state: ElementState
The new state of the button (pressed or released).
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for DeviceButtonEvent
impl Send for DeviceButtonEvent
impl Sync for DeviceButtonEvent
impl Unpin for DeviceButtonEvent
impl UnwindSafe for DeviceButtonEvent
Blanket Implementations
Mutably borrows from an owned value. Read more