joystick object
uint joysticks
The number of joysticks that are currently attached. This property cannot be modified from the script.
bool has_x
Checks to see if the joystick has an x axis. This property cannot be modified from the script.
bool has_y
Checks to see if the joystick has a y axis. This property cannot be modified from the script.
bool has_z
Checks to see if the joystick has a z axis. This property cannot be modified from the script.
bool has_r_x
Checks to see if the joystick has a rotational x axis. This property cannot be modified from the script.
bool has_r_y
Checks to see if the joystick has a rotational y axis. This property cannot be modified from the script.
bool has_r_z
Checks to see if the joystick has a rotational z axis. This property cannot be modified from the script.
uint buttons
The number of buttons on the device. This property cannot be modified from the script.
uint sliders
The number of sliders on the device. This property cannot be modified from the script.
uint povs
The number of povs (point of view controls) on the device. This property cannot be modified from the script.
string name
The name of the device that is currently being used. This property cannot be modified from the script.
bool active
This is true if a joystick device is opened, false if not. This property cannot be modified from the script.
int preferred_joystick
Returns the index of the joystick that the user has set as their preferred device in the control panel. This corresponds to the list returned by list_joysticks, and is never greater than the joysticks property -1. On error or if there is no default, -1 is returned. This property cannot be modified in the script.
long x
X-axis, usually the left-right movement of a stick. This property cannot be modified from the script.
long y
Y-axis, usually the forward-backward movement of a stick. This property cannot be modified from the script.
long z
Z-axis, often the throttle control. If the joystick does not have this axis, the value is 0. This property cannot be modified from the script.
long r_x
X-axis rotation. If the joystick does not have this axis, the value is 0. This property cannot be modified from the script.
long r_y
Y-axis rotation. If the joystick does not have this axis, the value is 0. This property cannot be modified from the script.
long r_z
Z-axis rotation (often called the rudder). If the joystick does not have this axis, the value is 0. This property cannot be modified from the script.
long slider_1
An additional axis value (formerly called the u-axis) whose semantics depend on the joystick. This property cannot be modified from the script.
long slider_2
An additional axis value (formerly called the v-axis) whose semantics depend on the joystick. This property cannot be modified from the script.
uint pov_1
Direction controller, such as point-of-view hat. The position is indicated in hundredths of a degree clockwise from north (away from the user). The center position is normally reported as - 1, but not all devices follow this rule. To check if a POV is centered, use the pov_centered method. For indicators that have only five positions, the value for a controller is - 1, 0, 9,000, 18,000, or 27,000. This property cannot be modified from the script.
uint pov_2
Direction controller, such as point-of-view hat. The position is indicated in hundredths of a degree clockwise from north (away from the user). The center position is normally reported as - 1, but not all devices follow this rule. To check if a POV is centered, use the pov_centered method. For indicators that have only five positions, the value for a controller is - 1, 0, 9,000, 18,000, or 27,000. This property cannot be modified from the script.
uint pov_3
Direction controller, such as point-of-view hat. The position is indicated in hundredths of a degree clockwise from north (away from the user). The center position is normally reported as - 1, but not all devices follow this rule. To check if a POV is centered, use the pov_centered method. For indicators that have only five positions, the value for a controller is - 1, 0, 9,000, 18,000, or 27,000. This property cannot be modified from the script.
uint pov_4
Direction controller, such as point-of-view hat. The position is indicated in hundredths of a degree clockwise from north (away from the user). The center position is normally reported as - 1, but not all devices follow this rule. To check if a POV is centered, use the pov_centered method. For indicators that have only five positions, the value for a controller is - 1, 0, 9,000, 18,000, or 27,000. This property cannot be modified from the script.
long v_x
The X-axis velocity. This property cannot be modified from the script.
long v_y
Y-axis velocity. This property cannot be modified from the script.
long v_z
Z-axis velocity. This property cannot be modified from the script.
long vr_x
X-axis angular velocity. This property cannot be modified from the script.
long vr_y
Y-axis angular velocity. This property cannot be modified from the script.
long vr_z
Z-axis angular velocity. This property cannot be modified from the script.
long v_slider_1
Extra axis velocity. This property cannot be modified from the script.
long v_slider_2
Extra axis velocity. This property cannot be modified from the script.
long a_x
X-axis acceleration. This property cannot be modified from the script.
long a_y
Y-axis acceleration. This property cannot be modified from the script.
long a_z
Z-axis acceleration. This property cannot be modified from the script.
long ar_x
X-axis angular acceleration. This property cannot be modified from the script.
long ar_y
Y-axis angular acceleration. This property cannot be modified from the script.
long ar_z
Z-axis angular acceleration. This property cannot be modified from the script.
long a_slider_1
Extra axis acceleration. This property cannot be modified from the script.
long a_slider_2
Extra axis acceleration. This property cannot be modified from the script.
long f_x
X-axis force. This property cannot be modified from the script.
long f_y
Y-axis force. This property cannot be modified from the script.
long f_z
Z-axis force. This property cannot be modified from the script.
long fr_x
X-axis torque. This property cannot be modified from the script.
long fr_y
Y-axis torque. This property cannot be modified from the script.
long fr_z
Z-axis torque. This property cannot be modified from the script.
long f_slider_1
Extra axis force. This property cannot be modified from the script.
long f_slider_2
Extra axis force. This property cannot be modified from the script.