QBasic 1.1: STICK Function

Syntax

STICK(n%)

Description / Parameter(s)

n% Indicates the coordinate returned:
 
n%Returns
0x coordinate of joystick A
1y coordinate of joystick A
2x coordinate of joystick B
3y coordinate of joystick B
You must call STICK(0) before STICK(1), STICK (2), or STICK(3). STICK(0) records the current coordinates.

Example

Temp% = STICK(0) PRINT STICK(2), STICK(3)