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

Get button press count.

Return the number of times the specified button has been pressed since the last time the button press count was reset. Optionally clear the count after reading it.

Parameters
btnThe button to check. See Button name constants.
resetCountWhether or not to reset the press counter.
Returns
The button press count.
Examples:
ex_ButtonCount.nxc.