KeyboardManager: a class to manage the polling of a switch-matrix keyboard

Dependents:   KeyboardTest

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers KeyboardStateChangeMonitor.cpp Source File

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