0% found this document useful (0 votes)
30 views

Stick PDF

The STICK function returns the x and y coordinates of up to two joysticks connected to a computer. It takes a numeric parameter from 0 to 3 to specify which joystick and whether the x or y coordinate is returned, with 0 and 1 retrieving the x and y values of joystick A, and 2 and 3 doing the same for joystick B. The coordinates are stored in a numeric variable passed to the STICK function.

Uploaded by

Raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Stick PDF

The STICK function returns the x and y coordinates of up to two joysticks connected to a computer. It takes a numeric parameter from 0 to 3 to specify which joystick and whether the x or y coordinate is returned, with 0 and 1 retrieving the x and y values of joystick A, and 2 and 3 doing the same for joystick B. The coordinates are stored in a numeric variable passed to the STICK function.

Uploaded by

Raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

GW-BASIC User's Guide

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
x coordinate of joystick A. Stores the x and y values for both joysticks for the
0
following three function calls.
1 y coordinate of joystick A.
2 x coordinate of joystick B.
3 y coordinate of joystick B.

file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/STICK.html28/03/2004 21.29.48

You might also like