pub struct MiscEvent(/* private fields */);Expand description
Miscellaneous management events.
Implementations§
Methods from Deref<Target = InputEvent>§
Sourcepub fn time(&self) -> SystemTime
pub fn time(&self) -> SystemTime
Returns the timestamp stored in the event.
The clock source used to generate event timestamps can be changed by calling
Evdev::set_clockid.
Sourcepub fn kind(&self) -> Option<EventKind>
pub fn kind(&self) -> Option<EventKind>
Returns the EventKind this InputEvent encodes.
EventKind is a matchable, type-safe enum which is intended to be the primary way most
applications examine input events.
Returns None when self doesn’t correspond to any of the known EventKinds. In that
case, the caller can still examine the raw event data if desired, but most consumers will
likely simply drop the InputEvent without handling it.
Sourcepub fn event_type(&self) -> EventType
pub fn event_type(&self) -> EventType
Returns the EventType of this event.
Sourcepub fn raw_code(&self) -> u16
pub fn raw_code(&self) -> u16
Returns the raw event code field.
The code of an InputEvent generally describes what entity the event is about.
Depending on the type of event, it can describe a key, axis, sound, LED, or other entity.
Sourcepub fn raw_value(&self) -> i32
pub fn raw_value(&self) -> i32
Returns the raw event value field.
The value of an InputEvent describes the new state of the key, axis, LED, or other
entity.