Joystick

u 1/joystick button,x,y

The Flotilla Joystick module always returns 3 parameters, they are:

  • Button
  • X value
  • Y value

Button can be either 0 for not pressed, or 1 for pressed.

The X and Y values range from 0 to 1023.

With the joystick orientated port-upwards, the X value ranges from 1023 (full left) to 0 (full right). The Y value ranges from 0 (full up) to 1023 (full down).

The joystick center point is approximately 512 by 512, but a deadzone is recommended.