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

pub struct GamepadState { /* fields omitted */ }

Cached gamepad state.

Methods

impl GamepadState
[src]

[src]

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

[src]

Returns value of axis or 0.0 when there is no information about axis.

[src]

Iterate over buttons data.

[src]

Iterate over axes data.

[src]

Returns button state and when it changed.

[src]

Returns axis state and when it changed.

Trait Implementations

impl Clone for GamepadState
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for GamepadState
[src]

[src]

Formats the value using the given formatter.