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