wn_switch_pressed
was_pressed.i4.v = wn_switch_pressed([last_pressed.i4.r])
This routine will return a value of TRUE if a switch in a graphics
window 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 a prior call to
'wn_switch_create_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:
wn_switch_read_c, wn_switch_create_c, wn_window_has_switch_c,
wn_switch_delete_c, wn_switch_window_delete_c, wn_switch_set_state_c,
wn_switch_disable_c, wn_switch_enable_c, wn_switch_relabel_c,
switch_pressed
C/C++ usage:
int was_pressed;
int last_pressed_id;
was_pressed = wn_switch_pressed(&last_pressed_id);