KeyboardManager: a class to manage the polling of a switch-matrix keyboard
KeyboardStateChangeMonitor Class Reference
A keyboard state handler that reports only state changes. More...
#include <KeyboardStateChangeMonitor.h>
Inherits kbd_mgr::KeyboardStateEventServer, and kbd_mgr::KeyboardStateHandler.
Public Member Functions | |
void | attach (FunctionKeyboardStateHandler::HandlerFunction fn) |
Attaches the monitor to a function. | |
template<class T > | |
void | attach (T *obj, typename MemberKeyboardStateHandler< T >::MemberFunction fn) |
Attaches the monitor to a method of an object. |
Detailed Description
A keyboard state handler that reports only state changes.
Definition at line 12 of file KeyboardStateChangeMonitor.h.
Member Function Documentation
void attach | ( | FunctionKeyboardStateHandler::HandlerFunction | fn ) | [inherited] |
Attaches the monitor to a function.
- Parameters:
-
fn Event handler called to report keyboard state change.
Definition at line 18 of file KeyboardStateEventServer.h.
void attach | ( | T * | obj, |
typename MemberKeyboardStateHandler< T >::MemberFunction | fn | ||
) | [inherited] |
Attaches the monitor to a method of an object.
- Parameters:
-
obj Event handler object fn Event handler method called to report keyboard state after each complete scan.
Definition at line 28 of file KeyboardStateEventServer.h.
Generated on Thu Jul 14 2022 19:25:04 by 1.7.2