Home icon
Home

STICK Function

Purpose:

To return the x and y coordinates of two joysticks.

Syntax:

x=STICK(n)

Comments:

x is a numeric variable for storing the result.

n is a valid numeric expression within the range of 0 to 3.

Value of n Coordinate Returned
0x coordinate of joystick A. Stores the x and y values for both joysticks for the following three function calls.
1y coordinate of joystick A.
2x coordinate of joystick B.
3y coordinate of joystick B.