![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A DTMF sequence editor and player for HAM radio equipment command & control.
Diff: mbed_keyboard_manager.hpp
- Revision:
- 0:1324e7d9d471
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed_keyboard_manager.hpp Mon Mar 07 22:51:19 2011 +0000 @@ -0,0 +1,26 @@ +#ifndef _MBED_KEYBOARD_MANAGER_HPP +#define _MBED_KEYBOARD_MANAGER_HPP + +#include "keyboard_manager.hpp" +#include "kbd_mgr/KeyboardManager.h" + +class MbedKeyboardManager : public KeyboardManager, public kbd_mgr::KeyPressEventHandler { +public: + MbedKeyboardManager(); + + virtual void attach(KeyHandler *handler); + virtual void detach(); + +private: + virtual void handleKeyPress(const kbd_mgr::KeyEvent &event); + + kbd_mgr::KeyboardMonitor keyMonitor; + kbd_mgr::KeyboardStateChangeMonitor changeMonitor; + kbd_mgr::SingleKeyPressMonitor keyPressMonitor; + kbd_mgr::LongKeyPressMonitor longKeyPressMonitor; + kbd_mgr::KeyMapper keyMapper; + + KeyHandler *handler; +}; + +#endif \ No newline at end of file