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

Dependents:   KeyboardTest

KeyboardStateChangeMonitor.cpp

Committer:
osmeest
Date:
2011-02-03
Revision:
3:1310c57aca77
Parent:
2:eb4cc53ff33d

File content as of revision 3:1310c57aca77:

#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