beautypg.com

Clickbtnpressed – Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual

Page 141

background image

140

APPENDIX • CLICK 500 DEVELOPER GUIDE

ClickBtnPressed

Checks to see if the button has been pressed since the last time ClickBtnPressed or Click-

BtnNotpressed were called.

˽

LIBRARY – click500button.LIB

˽

SYNTAX –

int ClickBtnPressed( void );

˽

RETURN VALUE – 0 - button has not been pressed; 1 - button has been pressed.

˽

EXAMPLE –

void myFunc( void )
{
if (ClickBtnPressed())
{
doSomething();
}
}

˽

SEE ALSO – ClickBtnNotPressed