Struct gilrs::ev::state::GamepadState[][src]

pub struct GamepadState { /* fields omitted */ }

Cached gamepad state.

Methods

impl GamepadState
[src]

Returns true if given button is pressed. Returns false if there is no information about btn or it is not pressed.

Returns value of el or 0.0 when there is no information about it. el can be either axis or button.

Important traits for ButtonDataIter<'a>

Iterate over buttons data.

Important traits for AxisDataIter<'a>

Iterate over axes data.

Returns button state and when it changed.

Returns axis state and when it changed.

Trait Implementations

impl Clone for GamepadState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GamepadState
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations