Espresso::GamepadState
Inherits Struct / Value / Object
Describes the input state of a gamepad.
The #guide button may not be available for input
as it is often hooked by the system or the Steam client.
Not all devices have all the buttons or axes defined by this type.
Unavailable buttons and axes will always report ButtonState::Released and 0.0 respectively.
Instance methods
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the axis, in the range -1.0 to 1.0 inclusive.
Gets the state of the axis, in the range -1.0 to 1.0 inclusive.
Gets the state of the axis, in the range -1.0 to 1.0 inclusive.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the axis, in the range -1.0 to 1.0 inclusive.
Gets the state of the axis, in the range -1.0 to 1.0 inclusive.
Gets the state of the axis, in the range -1.0 to 1.0 inclusive.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.
Gets the state of the button.
This will be one of ButtonState::Pressed or ButtonState::Released.
Indicates whether the button is currently pressed.