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

Dependents:   KeyboardTest

Embed: (wiki syntax)

« Back to documentation index

KeyMapper Class Reference

KeyMapper Class Reference

A key press event handler that adds a mapped key char to key events. More...

#include <KeyMapper.h>

Inherits kbd_mgr::KeyPressEventServer, and kbd_mgr::KeyPressEventHandler.

Public Member Functions

void attach (FunctionKeyPressEventHandler::HandlerFunction fn)
 Attaches the monitor to a function.
template<class T >
void attach (T *obj, typename MemberKeyPressEventHandler< T >::MemberFunction fn)
 Attaches the monitor to a method of an object.

Detailed Description

A key press event handler that adds a mapped key char to key events.

Mappings can be specified for any key press event or for some specific key press event.

Definition at line 105 of file KeyMapper.h.


Member Function Documentation

void attach ( FunctionKeyPressEventHandler::HandlerFunction  fn ) [inherited]

Attaches the monitor to a function.

Parameters:
fnEvent handler called to report keyboard state change.

Definition at line 18 of file KeyPressEventServer.h.

void attach ( T *  obj,
typename MemberKeyPressEventHandler< T >::MemberFunction  fn 
) [inherited]

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