Appearance
JoystickInfo
cpp
#include <Peripherals/Joystick/JoystickTypes.h>cpp
struct JoystickInfoDefined in Peripherals/Joystick/JoystickTypes.h:98
State of a joystick.
Public Attributes
| Return | Name | Description |
|---|---|---|
bool | button | The fire button is pressed. |
isize | axisX | Horizontal axis (-1 left, 0 neutral, 1 right). |
isize | axisY | Vertical axis (-1 up, 0 neutral, 1 down). |
button
cpp
bool buttonDefined in Peripherals/Joystick/JoystickTypes.h:100
The fire button is pressed.
axisX
cpp
isize axisXDefined in Peripherals/Joystick/JoystickTypes.h:101
Horizontal axis (-1 left, 0 neutral, 1 right).
axisY
cpp
isize axisYDefined in Peripherals/Joystick/JoystickTypes.h:102
Vertical axis (-1 up, 0 neutral, 1 down).