To allow the use of a joystick by enabling or disabling the trapping of its buttons.
STRIG(n) ON STRIG(n) OFF STRIG(n) STOP
n is 0, 2, 4, or 6, corresponding to the buttons on the joystick, where:
0 is button A1
2 is button B1
4 is button A2
6 is button B2
Enables trapping of the joystick buttons. After this statement is executed, GW-BASIC checks to see if this button has been pressed before executing following statements.
Disables GW-BASIC from checking the state of the button.
Disables trapping of a given button through the ON STRIG(n) statement. But, any pressings are remembered so that trapping may take place once it is reenabled.