Enum gilrs::Event [] [src]

pub enum Event {
    ButtonPressed(ButtonNativeEvCode),
    ButtonReleased(ButtonNativeEvCode),
    AxisChanged(Axisf32NativeEvCode),
    Connected,
    Disconnected,
}

Gamepad event.

Variants

Some button on gamepad has been pressed.

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.

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

Trait Implementations

impl Debug for Event
[src]

Formats the value using the given formatter.

impl Clone for Event
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Event
[src]

impl PartialEq for Event
[src]

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

This method tests for !=.