switch_pressed
was_pressed.i4.v = switch_pressed([last_pressed.i4.r])
This routine will return a value of TRUE if a switch has been
pressed since the last TIME this routine was called.
[last_pressed] ID of last switch pressed
(valid only if a value of TRUE is returned)
(returned by prior call to 'switch_create_c' or
'switch_create_radio_c')
This function returns status values as follows:
TRUE a switch has been pressed
FALSE no switch has been pressed
This function requires the following include files:
cnsparam_h, cbslib_h
Related functions:
switch_read_c, switch_create_c, switch_create_radio_c,
switch_set_state_c, switch_enable_c, switch_disable_c,
switch_text_to_id_c, wn_switch_pressed
C/C++ usage:
int was_pressed;
int last_pressed_id;
was_pressed = switch_pressed(&last_pressed_id);