NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
char ReadButtonEx ( const byte  btn,
bool  reset,
bool &  pressed,
unsigned int &  count 
)
inline

Read button information.

Read the specified button. Set the pressed and count parameters with the current state of the button. Optionally reset the press count after reading it.

Parameters
btnThe button to check. See Button name constants.
resetWhether or not to reset the press counter.
pressedThe button pressed state.
countThe button press count.
Returns
The function call result.
Examples:
ex_ReadButtonEx.nxc.