ON STRIG Statement
◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Branches to the specified routine when the joystick trigger is pressed;
can be used with object-specific events.
ON STRIG(n%) GOSUB {linenumber | linelabel}
■ n% Value that specifies a joystick trigger:
Value Description
═════ ════════════════════════════════════════════
0 Lower trigger, joystick A
2 Lower trigger, joystick B
4 Upper trigger, joystick A
6 Upper trigger, joystick B
■ linenumber First line of an event-handling routine to execute
linelabel when joystick trigger n% is pressed
See Also
◄Error/Event Trapping Summary► ◄Object Events Summary►
◄STICK Function► ◄STRIG Function►
◄STRIG Statement►