External Device Joystick

gives joysticks information.

joystick

Settings

num joystick

Index number of the joystick to catch (if several joysticks are connected to the computer).

axis

Positions of axis.

button

Sends 1 if the Nth Button is pressed.

trackball dx

Returns relative motion since the last calculation, these motion deltas are placed into dx.

trackball dy

Returns relative motion since the last calculation, these motion deltas are placed into dy.

hat

Gets the current state of a POV hat on a joystick according the following values:

  • HAT-CENTERED = 0
  • HAT-UP = 1
  • HAT-RIGHT = 2
  • HAT-DOWN = 4
  • HAT-LEFT = 8
  • HAT-RIGHTUP = 3
  • HAT-RIGHTDOWN = 6
  • HAT-LEFTUP = 9
  • HAT-LEFTDOWN = 12

See also

version 6.0.240115

Edit All Pages