qb45advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
STICK Function Details
  QuickSCREEN      Details      Example      Contents      Index
──────────────────────────────────────────────────────────────────────────────
STICK Function Details
 
Syntax
  STICK(n)
 
The argument n is a numeric expression whose value is an unsigned
integer in the range 0 to 3:
 
  Argument   Value Returned
  0          The x coordinate of joystick A.
  1          The y coordinate of joystick A when STICK(0) was
             last called.
  2          The x coordinate of joystick B when STICK(0) was
             last called.
  3          The y coordinate of joystick B when STICK(0) was
             last called.
 
The x and y coordinates have a range of 1 to 200. You must use
STICK(0) before you use STICK(1), STICK(2), or STICK(3). STICK(0) not
only returns the x coordinate of joystick A, it also records the other
joystick coordinates. These recorded coordinates are returned by
calling STICK(1)-STICK(3).