qb45advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
STRIG Statements Details
  QuickSCREEN      Details      Example      Contents      Index
──────────────────────────────────────────────────────────────────────────────
STRIG Statements Details
 
Syntax
  STRIG(n) ON
  STRIG(n) OFF
  STRIG(n) STOP
 
The argument, n, is a numeric expression indicating the joystick
button to trap:
 
  Value  Button
 
  0      Lower button, joystick A
  2      Lower button, joystick B
  4      Upper button, joystick A
  6      Upper button, joystick B
 
The STRIG(n) ON statement enables joystick event trapping by an ON STRIG
statement.  While trapping is enabled, and if a nonzero line number is
specified in the ON STRIG statement, BASIC checks between every statement
to see if the joystick trigger has been pressed.
 
The STRIG(n) OFF statement disables event trapping. If a subsequent event
occurs (i.e., if the trigger is pressed), it will not be remembered when
the next STRIG ON is executed.
 
The STRIG(n) STOP statement inhibits event trapping. If an event occurs
it is remembered, and the event trap takes place as soon as trapping is
re-enabled.