Tandy 1000 Basic Reference Manual page 321

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10
I
BASIC
Keywords
STRIG
Function
STRIG( number)
Returns the status of joystick buttons.
Number
is an integer in the range 0 to 7 to test the status of the
joystick buttons.
Variable
is a numeric variable to receive the value returned by
number
.
Each
number
tests for a different status of the buttons and re-
turns a numeric value in
variable
regarding the results of the
test. The
numbers
and their functions are:
Tests to see if Trigger A1 has been pressed and re-
leased 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 Al.
BASIC returns a -1 if you are pressing it and a 0 if
not.
Tests to see if Trigger B1 has been pressed and re-
leased 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 B1.
BASIC returns a -1 if you are pressing it and a 0 if
not.
Tests to see if Trigger A2 has been pressed and re-
leased 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 A2.
BASIC returns a -1 if you are pressing it and a 0 if
not.
319

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents