Enum gilrs::EventType [] [src]

pub enum EventType {
    ButtonPressed(ButtonNativeEvCode),
    ButtonRepeated(ButtonNativeEvCode),
    ButtonReleased(ButtonNativeEvCode),
    AxisChanged(Axisf32NativeEvCode),
    Connected,
    Disconnected,
    Dropped,
}

Gamepad event.

Variants

Some button on gamepad has been pressed.

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

Previously pressed button has been released.

Value of axis has changed. Value can be in range [-1.0, 1.0] for sticks and [0.0, 1.0] for triggers.

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]

[src]

Formats the value using the given formatter.

impl Clone for EventType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for EventType
[src]

impl PartialEq for EventType
[src]

[src]

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

[src]

This method tests for !=.