Enum gilrs::ev::EventType[][src]

pub enum EventType {
    ButtonPressed(ButtonCode),
    ButtonRepeated(ButtonCode),
    ButtonReleased(ButtonCode),
    ButtonChanged(Buttonf32Code),
    AxisChanged(Axisf32Code),
    Connected,
    Disconnected,
    Dropped,
}

Gamepad event.

Variants

Some button on gamepad has been pressed.

This event can be generated by ev::Repeat event filter.

Previously pressed button has been released.

Value of button has changed. Value can be in range [0.0, 1.0].

Value of axis has changed. Value can be in range [-1.0, 1.0].

Gamepad has been connected. If gamepad's UUID doesn't match one of disconnected gamepads, newly connected gamepad will get new ID. This event is also emitted when creating Gilrs for every gamepad that was already connected.

Gamepad has been disconnected. Disconnected gamepad will not generate any new events.

There was an Event, but it was dropped by one of filters. You should ignore it.

Trait Implementations

impl Debug for EventType
[src]

Formats the value using the given formatter. Read more

impl Clone for EventType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for EventType
[src]

impl PartialEq for EventType
[src]

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

This method tests for !=.

Auto Trait Implementations

impl Send for EventType

impl Sync for EventType