You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
381 B
16 lines
381 B
8 years ago
|
#pragma once
|
||
|
|
||
|
#include <Arduino.h>
|
||
|
|
||
|
#define HOOK_MAX 64
|
||
|
|
||
|
typedef bool (*custom_handler_t)(byte row, byte col, uint8_t currentState, uint8_t previousState);
|
||
|
extern custom_handler_t eventHandlers[HOOK_MAX];
|
||
|
|
||
|
void event_handler_hook_add (custom_handler_t hook);
|
||
|
|
||
|
typedef void (*custom_loop_t)(void);
|
||
|
extern custom_loop_t loopHooks[HOOK_MAX];
|
||
|
|
||
|
void loop_hook_add (custom_loop_t hook);
|