pilot.JoyData

Class

JoyData contains data from a connected joystick.

Inherits from pilot.Sample.

Fields

vector<float> axes

List of joystick axis and their position from -1 to 1. The values are listed in the following order: [JOYAXIS_LEFT_X, JOYAXIS_LEFT_Y, JOYAXIS_LT, JOYAXIS_RIGHT_X, JOYAXIS_RIGHT_Y, JOYAXIS_RT]

vector<bool> buttons

List of joystick buttons and their state. The values are listed in the following order: [JOYBUTTON_A, JOYBUTTON_B, JOYBUTTON_X, JOYBUTTON_Y, JOYBUTTON_LB, JOYBUTTON_RB, JOYBUTTON_BACK, JOYBUTTON_START]