|
QuasarEngine
Cross-platform 3D engine and editor
|
State of the buttons and axes of a gamepad. More...
#include <quasar/core/Gamepads.h>
Public Member Functions | |
| bool | IsPressed (GamepadButton button) const |
| Returns true if the button is held down. | |
| float | GetAxis (GamepadAxis axis) const |
| Returns the value of the axis. | |
Public Attributes | |
| std::array< bool, GamepadButtonCount > | Buttons {} |
| True for each button held down, indexed by GamepadButton. | |
| std::array< float, GamepadAxisCount > | Axes {} |
| Value of each axis, indexed by GamepadAxis. | |
State of the buttons and axes of a gamepad.