.. _pilot.JoyData: pilot.JoyData ============= .. cpp:namespace:: pilot::JoyData Class ----- `JoyData` contains data from a connected joystick. Inherits from :ref:`pilot.Sample`. Fields ------ .. cpp:member:: vector axes List of joystick axis and their position from -1 to 1. Usually there are the following: [JOYAXIS_LEFT_X, JOYAXIS_LEFT_Y, JOYAXIS_LT, JOYAXIS_RIGHT_X, JOYAXIS_RIGHT_Y, JOYAXIS_RT, JOYAXIS_MAX] .. cpp:member:: vector buttons List of joystick buttons and their state. Usually there are the following: [JOYBUTTON_A, JOYBUTTON_B, JOYBUTTON_X, JOYBUTTON_Y, JOYBUTTON_LB, JOYBUTTON_RB, JOYBUTTON_BACK, JOYBUTTON_START, JOYBUTTON_MAX]