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>strig status of joystick buttons function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
STRIG                    Status of Joystick Buttons                  Function

 STRIG(n)

    Returns status information about the joystick buttons.

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

                0   Returns -1 if button 1 on A has been pressed since the
                    most recent STRIG(0) call; otherwise, returns 0.
                1   Returns -1 if button 1 on A is currently pressed;
                    otherwise returns 0.
                2   Returns -1 if button 1 on B has been pressed since the
                    most recent STRIG(2) call; otherwise returns 0.
                3   Returns -1 if button 1 on B is currently pressed;
                    otherwise returns 0.
                4   Returns -1 if button 2 on A has been pressed since the
                    most recent STRIG(4) call; otherwise, returns 0.
                5   Returns -1 if button 2 on A is currently pressed;
                    otherwise returns 0.
                6   Returns -1 if button 2 on B has been pressed since the
                    most recent STRIG(6) call; otherwise returns 0.
                7   Returns -1 if button 2 on B is currently pressed;
                    otherwise returns 0.

   -------------------------------------------------------------------------

      Notes:    A STRIG ON statement must be executed before the STRIG(n)
                function can be used.

See Also: STICK STRIG (Statement)

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