Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>stick joystick coordinates</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
STICK                    Joystick Coordinates

 y = STICK(n)

    Returns the x or y coordinate for joystick A or B.

           n    A numeric expression in the range 0 to 3. Determines what
                kind of information is returned, as follows:

                0   Returns x coordinate of joystick A. A STICK(0) call
                    must be performed before STICK(1), STICK(2), or
                    STICK(3) can be used.
                1   Returns the y coordinate of joystick A.
                2   Returns the x coordinate of joystick B.
                3   Returns the y coordinate of joystick B.

See Also: STRIG (Function)

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson