The operator() should then be overriden to do actions. It will be called when the key event occurs.
To define only a single function, there are some useful macros (see below).
Then the callback is associated to the event with the method LCDClient::assignKey()
Classes | |
class | LCDCallback |
Main class to create new callback for key events. More... | |
Defines | |
#define | LCD_CALLBACK_FUNCTION_BEGIN(fname) |
#define | LCD_CALLBACK_FUNCTION_END(fname) |
Typedefs | |
typedef char | KeyEvent |
|
Value: class LCDClass_fname : public LCDCallback \ { \ public: \ void operator()(KeyEvent lcdKey)
Definition at line 30 of file LCDCallback.h. |
|
Value: }; \ LCDClass_fname fname;
Definition at line 42 of file LCDCallback.h. |
|
The type used to define a key event. Definition at line 51 of file LCDCallback.h. |