KeyboardManager: a class to manage the polling of a switch-matrix keyboard
kbd_mgr/KeyPressEventHandler.h
- Committer:
- osmeest
- Date:
- 2011-01-23
- Revision:
- 2:eb4cc53ff33d
- Child:
- 3:1310c57aca77
File content as of revision 2:eb4cc53ff33d:
#ifndef KEY_PRESS_EVENT_HANDLER_H_ #define KEY_PRESS_EVENT_HANDLER_H_ namespace kbd_mgr { /** * @brief Interface used to report key presses and releases. */ class KeyPressEventHandler { public: enum { NoKey = -1 }; virtual void operator()(int key, bool keyDown) = 0; virtual ~KeyPressEventHandler() { } }; } // kbd_mgr #endif // KEY_PRESS_EVENT_HANDLER_H_