axis
The axis this sensor reacts to, as a list of two values [axisIndex,
axisDirection] axisIndex: the axis index to use when detecting axis
movement, 1=primary directional control, 2=secondary directional
control.

axisSingle

(read-only) like axisValues but returns a single axis value that is set
by the sensor. Only use this for "Single Axis" type sensors
otherwise it will raise an error.

Type:

int

axisValues

(read-only) The state of the joysticks axis as a list of values numAxis long. each spesifying the value of an axis
between -32767 and 32767 depending on how far the axis is pushed, 0 for
nothing. The first 2 values are used by most joysticks and gamepads for
directional control. 3rd and 4th values are only on some joysticks and
can be used for arbitary controls. left:[-32767, 0, ...], right:[32767,
0, ...], up:[0, -32767, ...], down:[0, 32767, ...]

Type:

list of ints

button

The button index the sensor reacts to (first button = 0). When the
"All Events" toggle is set, this option has no effect.

Type:

integer

hat

The hat the sensor reacts to, as a list of two values: [hatIndex,
hatDirection] hatIndex: the hat index to use when detecting hat movement,
1=primary hat, 2=secondary hat (4 max). hatDirection: 1-12

Type:

[integer, integer]

hatValues

(read-only) The state of the joysticks hats as a list of values numHats long. each spesifying the direction of the hat
from 1 to 12, 0 when inactive. Hat directions are as follows...

0:None

1:Up

2:Right

4:Down

8:Left

3:Up - Right

6:Down - Right

12:Down - Left

9:Up - Left

Type:

list of ints

index

The joystick index to use (from 0 to 7). The first joystick is always 0.

Type:

integer

threshold

Axis threshold. Joystick axis motion below this threshold wont trigger an
event. Use values between (0 and 32767), lower values are more sensitive.