Site Tools
Sidebar
User's Manual
t2:wait
wait
wait - Defines an combo state
Description
wait(int16 ms);
Defines an combo state and sets how long which the defined state must last.
The wait() statement belongs exclusively to combos and cannot exist inside conditionals. |
Parameters
- ms: Time which the current state must last, expressed in milli-seconds (
1s == 1000ms
).
Examples
Example #1 wait() example
combo Example { // This is an combo state. In this state the BUTTON_4 and BUTTON_7 should // be pressed and held-down for 250 milli-seconds. set_val(BUTTON_4, 100.0); set_val(BUTTON_7, 100.0); wait(250); // After 250 milli-seconds the combo moves to the next state. // This is the second combo state. In this state the BUTTON_6 should be // pressed and held-down for 120 milli-seconds. set_val(BUTTON_6, 100.0); wait(120); }
t2/wait.txt · Last modified: 2016/11/14 02:59 by J2Kbr