Arduino Universal Inputs
A collection of libraries for managing/processing input devices on Arduino.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator
Public Types | Public Member Functions | List of all members
UniversalInputCallbackFunctionHandler Class Reference

Callback handler for function pointers. More...

#include <UniversalInputCallbackFunctionHandler.h>

Inheritance diagram for UniversalInputCallbackFunctionHandler:
Inheritance graph
[legend]
Collaboration diagram for UniversalInputCallbackFunctionHandler:
Collaboration graph
[legend]

Public Types

typedef void(* UniversalInputCallbackFunction )(inputtype_t, IInputDevice *)
 Callback function pointer type.
 

Public Member Functions

 UniversalInputCallbackFunctionHandler (UniversalInputCallbackFunction func)
 Create a new function pointer callback handler. More...
 
void handleUniversalInputEvent (inputtype_t type, IInputDevice *device)
 Handle a calback. More...
 

Detailed Description

Callback handler for function pointers.

Constructor & Destructor Documentation

UniversalInputCallbackFunctionHandler::UniversalInputCallbackFunctionHandler ( UniversalInputCallbackFunction  func)
inline

Create a new function pointer callback handler.

Parameters
funcPointer to the callback function

Member Function Documentation

void UniversalInputCallbackFunctionHandler::handleUniversalInputEvent ( inputtype_t  type,
IInputDevice device 
)
inlinevirtual

Handle a calback.

Parameters
typeType of input device
devicePointer to the input device

Dispatches the event to the function given in the constructor.

Implements IUniversalInputCallback.


The documentation for this class was generated from the following file: