Tandy 1000 Basic Reference Manual page 323

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10 I BASIC Keywords
STRIG/Trap
Statement
STRIG(number) ON
STRIG(number) OFF
STRIG(number) STOP
Turns on, turns off, or temporarily halts joystick trapping.
Number is a value of 0, 2,
4,
or 6 to indicate the joystick button
you are trapping:
0
indicates Trigger Al.
2
indicates Trigger B1.
4
indicates Trigger A2.
6
indicates Trigger B2.
Joystick A
is
the left joystick and Joystick B is the right joystick.
STRIGO ON
STRIGO
ON
enables joystick trapping with the
ON
STRIGO
GOSUB statement. If you execute a STRIGO
ON
statement,
BASIC checks after every program statement to see if you
pressed a joystick button. If you press a joystick button, BASIC
transfers program control to the line number specified in the
ON
STRIGO GOSUB statement. See ON STRIGO GOSUB.
Note: Do not confuse the STRIG/Trap statement with
the STRIG function statement. These are 2 separate
statements that perform 2 distinct functions in BASIC.
STRIGO STOP
STRIG() STOP temporarily halts joystick trapping. If you press a
joystick button after
a
STRIGO STOP statement is executed,
BASIC does not transfer program control to the subroutine until
trapping is turned on again with a STRIGO
ON
statement.
BASIC remembers that the joystick buttons were pressed and
transfers program control to the subroutine immediately after
joystick trapping is turned on again.
321

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents