Site Tools
Sidebar
User's Manual
t2:event_active
event_active
event_active — I/O changed to active state
Description
bool event_active(uint8 io);
Check if the I/O indexed by io changed its state from release to active.
Parameters
- io: Index of an I/O.
Return Value
Returns true if the I/O entered in active state, FALSE
otherwise.
Examples
Example #1 event_active() example
main { if(event_active(BUTTON_13)) { combo_run(Example); } } combo Example { set_val(BUTTON_4, 100.0); wait(50); set_val(BUTTON_8, 100.0); wait(50); set_val(BUTTON_16, 100.0); wait(50); }
See Also
t2/event_active.txt · Last modified: 2016/11/18 12:54 by J2Kbr