STRIG Function
◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Returns the status of a joystick trigger; -1 is returned if the condition is
true, otherwise, 0 is returned; can be used with object-specific events.
STRIG(n%)
■ n% Value that specifies a joystick-status condition:
Value Description
═════ ═════════════════════════════════════════════════════════
0 Lower joystick A trigger was pressed since last STRIG(0)
1 Lower joystick A trigger is currently pressed
2 Lower joystick B trigger was pressed since last STRIG(2)
3 Lower joystick B trigger is currently pressed
4 Upper joystick A trigger was pressed since last STRIG(4)
5 Upper joystick A trigger is currently pressed
6 Upper joystick B trigger was pressed since last STRIG(6)
7 Upper joystick B trigger is currently pressed
See Also
◄Object Events Summary► ◄ON STRIG Statement►
◄STICK Function► ◄STRIG Statement►