Community QBasic

Rebooting the QBasic we all know and love!


Project maintained by Cory Smith

STRIG(n) Statements

Enable or disable joystick trapping.

Syntax

STRIG(button) ON

STRIG(button) OFF

STRIG(button) STOP

Comments

button is a numeric expression that specifies which joystick button to trap:

STRIG(button) ON enables joystick trapping for the specified button.

STRIG(button) OFF disables joystick trapping fo the specified button. All events are ignored.

STRIG(button) STOP temporarily disables joystick trapping for the specified button. Events are processed once trapping is enabled.

Example

ON STRIG(0) GOSUB Handler
STRIG(0) ON

See Also