Basic
STRIG(number)
Returns the status of joystick buttons. (L refers to the left joystick
and R to the right joystick.)
Number
is
a
number in the range 0 to
7
to test the status of the
joystick buttons.
0 Tests to see if Trigger L1 has been pressed and released since
the
last
STRIG(0) function was executed. BASIC returns
a
-1
if it has been pressed and
a
0 if not.
Tests to see if you are currently pressing Trigger
L1.
BASIC
returns
a
-1
if you are pressing it and a 0 if not.
Tests to see if Trigger R1 has been pressed and released since
the
last
STRIG(2) function was executed. BASIC returns
a
-1
if it has been pressed and
a
0
if not.
Tests to see if you are currently pressing Trigger R1. BASIC
returns a
-1
if you are pressing it and
a
0 if not.
Tests to see if Trigger L2 has been pressed and released since
the last STRIG(4) function was executed. BASIC returns
a
-1
if it has been pressed and
a
0 if not.
Tests to see if you are currently pressing Trigger
L2.
BASIC
returns
a
-1
if you are pressing it and
a
0
if not.
Tests to see if Trigger R2 has been pressed and released since
the
last
STRIG(6) function was executed. BASIC returns
a
-1
if it has been pressed and
a
0 if not.
Tests to see if you are currently pressing Trigger R2. BASIC
returns
a
-1
if you are pressing it and
a
0
if
not.
A
=
STRIG(0)
2
=
STRIG(4)
1
2
3
4
5
6
7
STRIG(number)
action
Turns on, turns off, or temporarily halts joystick trapping.
STRIG
ON
enables joystick trapping.
STRIG
OFF
disables joystick trapping.
STRIG STOP temporarily halts joystick trapping.
66
Tandy
1000