Struct gilrs::ev::Event [] [src]

pub struct Event {
    pub id: usize,
    pub event: EventType,
    pub time: SystemTime,
}

Holds information about gamepad event.

Fields

Id of gamepad.

Event's data.

Time when event was emitted.

Methods

impl Event
[src]

[src]

Creates new event with current time.

[src]

Returns Event with EventType::Dropped.

[src]

Creates Event with EventType::Dropped.

[src]

Returns true if event is Dropped and should be ignored.

Trait Implementations

impl Filter for Event
[src]

[src]

impl Copy for Event
[src]

impl Clone for Event
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Event
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for Event
[src]

[src]

Formats the value using the given formatter.