17.07.2013 Views

GWBASIC User's Manual

GWBASIC User's Manual

GWBASIC User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GW-BASIC <strong>User's</strong> Guide<br />

STRIG(n) Statement<br />

Purpose:<br />

To allow the use of a joystick by enabling or disabling the trapping of its buttons.<br />

Syntax:<br />

STRIG(n) ON<br />

STRIG(n) OFF<br />

STRIG(n) STOP<br />

Comments:<br />

n is 0, 2, 4, or 6, corresponding to the buttons on the joystick, where:<br />

0 is button A1<br />

2 is button B1<br />

4 is button A2<br />

6 is button B2<br />

Examples:<br />

STRIG(n) ON<br />

Enables trapping of the joystick buttons. After this statement is executed, GW-BASIC checks to<br />

see if this button has been pressed before executing following statements.<br />

STRIG(n) OFF<br />

Disables GW-BASIC from checking the state of the button.<br />

STRIG(n) STOP<br />

Disables trapping of a given button through the ON STRIG(n) statement. But, any pressings are<br />

remembered so that trapping may take place once it is reenabled.<br />

file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/STRIGN.html28/03/2004 21.29.49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!