Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <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 3. Determines the
                kind of information returned, as follows:

                0   Returns -1 if button A has been pressed since the most
                    recent STRIG(0) call; otherwise, returns 0.
                1   Returns -1 if button A is currently pressed; otherwise
                    returns 0.
                2   Returns -1 if button B has been pressed since the most
                    recent STRIG(2) call; otherwise returns 0.
                3   Returns -1 if button 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