![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A DTMF sequence editor and player for HAM radio equipment command & control.
KeyboardManager/KeyboardStateChangeMonitor.cpp@0:1324e7d9d471, 2011-03-07 (annotated)
- Committer:
- osmeest
- Date:
- Mon Mar 07 22:51:19 2011 +0000
- Revision:
- 0:1324e7d9d471
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
osmeest | 0:1324e7d9d471 | 1 | #include "kbd_mgr/KeyboardStateChangeMonitor.h" |
osmeest | 0:1324e7d9d471 | 2 | |
osmeest | 0:1324e7d9d471 | 3 | namespace kbd_mgr { |
osmeest | 0:1324e7d9d471 | 4 | |
osmeest | 0:1324e7d9d471 | 5 | void KeyboardStateChangeMonitor::handleState(const KeyboardState &newState) |
osmeest | 0:1324e7d9d471 | 6 | { |
osmeest | 0:1324e7d9d471 | 7 | if (newState != this->lastState) { |
osmeest | 0:1324e7d9d471 | 8 | invokeHandler(newState); |
osmeest | 0:1324e7d9d471 | 9 | this->lastState = newState; |
osmeest | 0:1324e7d9d471 | 10 | } |
osmeest | 0:1324e7d9d471 | 11 | } |
osmeest | 0:1324e7d9d471 | 12 | |
osmeest | 0:1324e7d9d471 | 13 | } // kbd_mgr |