Struct gilrs::ev::Event
[−]
[src]
pub struct Event { pub id: usize, pub event: EventType, pub time: SystemTime, }
Holds information about gamepad event.
Fields
id: usize
Id of gamepad.
event: EventType
Event's data.
time: SystemTime
Time when event was emitted.
Methods
impl Event
[src]
fn new(id: usize, event: EventType) -> Self
[src]
Creates new event with current time.
fn drop(self) -> Event
[src]
Returns Event
with EventType::Dropped
.
fn dropped() -> Event
[src]
Creates Event
with EventType::Dropped
.
fn is_dropped(&self) -> bool
[src]
Returns true if event is Dropped
and should be ignored.
Trait Implementations
impl Filter for Event
[src]
impl Copy for Event
[src]
impl Clone for Event
[src]
fn clone(&self) -> Event
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Event
[src]
fn eq(&self, __arg_0: &Event) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Event) -> bool
[src]
This method tests for !=
.