[][src]Trait joydev::GenericEvent

pub trait GenericEvent where
    Self: Clone + Copy + Debug + Eq + Hash + PartialEq
{ fn is_real(&self) -> bool;
fn is_synthetic(&self) -> bool;
fn time(&self) -> u32;
fn value(&self) -> i16; }

Trait common to all events

Required methods

fn is_real(&self) -> bool

Returns true if the event is real

fn is_synthetic(&self) -> bool

Returns true if the event is synthetic

fn time(&self) -> u32

Returns the event's timestamp

fn value(&self) -> i16

Returns the event's value

Loading content...

Implementors

impl GenericEvent for DeviceEvent[src]

impl GenericEvent for AxisEvent[src]

impl GenericEvent for ButtonEvent[src]

impl GenericEvent for Event[src]

Loading content...