Difference between revisions of "STRIG"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
imported>Clippy
Line 3: Line 3:




* Returns True(-1) or False(0) button press values:
* Returns True(-1) or False(0) button press values for 2 joysticks:
: * STRIG(0) = -1 lower button 1 on joystick A pressed since last STRIG(0)
:* STRIG(0) = -1 lower button 1 on joystick A pressed since last STRIG(0)
:* STRIG(1) = -1 lower button 1 on joystick A currently pressed
:* STRIG(1) = -1 lower button 1 on joystick A currently pressed
:* STRIG(2) = -1 lower button 1 on joystick B pressed since last STRIG(2)
:* STRIG(2) = -1 lower button 1 on joystick B pressed since last STRIG(2)

Revision as of 20:43, 19 September 2009

The STRIG function returns button presses on game port joysticks.


  • Returns True(-1) or False(0) button press values for 2 joysticks:
  • STRIG(0) = -1 lower button 1 on joystick A pressed since last STRIG(0)
  • STRIG(1) = -1 lower button 1 on joystick A currently pressed
  • STRIG(2) = -1 lower button 1 on joystick B pressed since last STRIG(2)
  • STRIG(3) = -1 lower button 1 on joystick B currently pressed
  • STRIG(4) = -1 upper button 2 on joystick A pressed since last STRIG(4)
  • STRIG(5) = -1 upper button 2 on joystick A currently pressed
  • STRIG(6) = -1 upper button 2 on joystick B pressed since last STRIG(6)"
  • STRIG(7) = -1 upper button 2 on joystick B currently pressed
  • STRIG(0), STRIG(2), STRIG(4) and STRIG(6) keep track of any presses that might have been missed.