getGamepadButtonState
WindowModuleInterface::getGamepadButtonState
Returns the state of a gamepad button.
Declaration
virtual InputState getGamepadButtonState(GamepadID gamepadID, InputGamepadButton button) = 0;
Parameters
Name |
Type |
Description |
---|---|---|
gamepadID |
The gamepad to get the button state from. |
|
button |
The button to get the state from. |
Returns
An InputState containing the state of the gamepad button.
Left and right triggers being analogic inputs, they are not covered by this function, see getGamepadLeftTrigger and getGamepadRightTrigger.