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

Dependents:   KeyboardTest

Embed: (wiki syntax)

« Back to documentation index

KeyboardStateEventServer Class Reference

KeyboardStateEventServer Class Reference

A keyboard state handler that reports only state changes. More...

#include <KeyboardStateEventServer.h>

Inherits kbd_mgr::KeyboardEventServer< KeyboardStateHandler >.

Inherited by KeyboardMonitor, and KeyboardStateChangeMonitor.

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 KeyboardStateEventServer.h.


Member Function Documentation

void attach ( FunctionKeyboardStateHandler::HandlerFunction  fn )

Attaches the monitor to a function.

Parameters:
fnEvent handler called to report keyboard state change.

Definition at line 18 of file KeyboardStateEventServer.h.

void attach ( T *  obj,
typename MemberKeyboardStateHandler< T >::MemberFunction  fn 
)

Attaches the monitor to a method of an object.

Parameters:
objEvent handler object
fnEvent handler method called to report keyboard state after each complete scan.

Definition at line 28 of file KeyboardStateEventServer.h.