NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
bool ButtonPressed ( const byte  btn,
bool  resetCount = false 
)
inline

Check for button press.

This function checks whether the specified button is pressed or not. You may optionally reset the press count.

Parameters
btnThe button to check. See Button name constants.
resetCountWhether or not to reset the press counter.
Returns
A boolean value indicating whether the button is pressed or not.
Examples:
ex_buttonpressed.nxc, ex_HTGyroTest.nxc, ex_SetAbortFlag.nxc, and ex_SetLongAbort.nxc.