![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A DTMF sequence editor and player for HAM radio equipment command & control.
Diff: KeyboardManager/KeyboardStateChangeMonitor.cpp
- Revision:
- 0:1324e7d9d471
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/KeyboardManager/KeyboardStateChangeMonitor.cpp Mon Mar 07 22:51:19 2011 +0000 @@ -0,0 +1,13 @@ +#include "kbd_mgr/KeyboardStateChangeMonitor.h" + +namespace kbd_mgr { + +void KeyboardStateChangeMonitor::handleState(const KeyboardState &newState) +{ + if (newState != this->lastState) { + invokeHandler(newState); + this->lastState = newState; + } +} + +} // kbd_mgr