Arduino Universal Inputs
A collection of libraries for managing/processing input devices on Arduino.
|
Callback handler for function pointers. More...
#include <UniversalInputCallbackFunctionHandler.h>
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... | |
Callback handler for function pointers.
|
inline |
Create a new function pointer callback handler.
func | Pointer to the callback function |
|
inlinevirtual |
Handle a calback.
type | Type of input device |
device | Pointer to the input device |
Dispatches the event to the function given in the constructor.
Implements IUniversalInputCallback.