Skip to content

JoystickInfo ​

cpp
#include <Peripherals/Joystick/JoystickTypes.h>
cpp
struct JoystickInfo

Defined in Peripherals/Joystick/JoystickTypes.h:98

State of a joystick.

Public Attributes ​

ReturnNameDescription
boolbuttonThe fire button is pressed.
isizeaxisXHorizontal axis (-1 left, 0 neutral, 1 right).
isizeaxisYVertical axis (-1 up, 0 neutral, 1 down).

button ​

cpp
bool button

Defined in Peripherals/Joystick/JoystickTypes.h:100

The fire button is pressed.


axisX ​

cpp
isize axisX

Defined in Peripherals/Joystick/JoystickTypes.h:101

Horizontal axis (-1 left, 0 neutral, 1 right).


axisY ​

cpp
isize axisY

Defined in Peripherals/Joystick/JoystickTypes.h:102

Vertical axis (-1 up, 0 neutral, 1 down).