STICK

From QB64 Wiki
Revision as of 21:33, 19 September 2009 by imported>Clippy (Created page with 'The '''STICK''' function returns the directional coordinate move of the joystick. ''Italic text'' coordinate% = STICK(function%) * Function values are only 0 to 3 for 2 joyst…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The STICK function returns the directional coordinate move of the joystick.


Italic text coordinate% = STICK(function%)


  • Function values are only 0 to 3 for 2 joysticks.
  • Returns coordinate values from 1 to 200
  • STICK(0) is required to get values from the other STICK functions. So use it first!
  • STICK(0) returns the column coordinate of joystick A call. Allows reads of the other STICK values.
  • STICK(1) returns row column coordinate of joystick A.
  • STICK(2) returns column coordinate of joystick B. (second joystick if used)
  • STICK(3) returns row coordinate of joystick B if used.