base class — PyObjectPlus
A Python interface to a joystick.
The name assigned to the joystick by the operating system. (read-only)
Type: | string |
---|
A list of active button values. (read-only)
Type: | list |
---|
The state of the joysticks axis as a list of values numAxis long. (read-only).
Type: | list of ints. |
---|
Each specifying the value of an axis between -1.0 and 1.0 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.
The state of the joysticks hats as a list of values numHats long. (read-only).
Type: | list of ints |
---|
Each specifying the direction of the hat from 1 to 12, 0 when inactive.
Hat directions are as follows...
The number of axes for the joystick at this index. (read-only).
Type: | integer |
---|
The number of buttons for the joystick at this index. (read-only).
Type: | integer |
---|
The number of hats for the joystick at this index. (read-only).
Type: | integer |
---|