KeyboardManager: a class to manage the polling of a switch-matrix keyboard
Embed:
(wiki syntax)
Show/hide line numbers
KeyboardStateChangeMonitor.cpp
00001 #include "kbd_mgr/KeyboardStateChangeMonitor.h" 00002 00003 namespace kbd_mgr { 00004 00005 void KeyboardStateChangeMonitor::handleState(const KeyboardState &newState) 00006 { 00007 if (newState != this->lastState) { 00008 invokeHandler(newState); 00009 this->lastState = newState; 00010 } 00011 } 00012 00013 } // kbd_mgr
Generated on Thu Jul 14 2022 19:25:04 by 1.7.2