17 #define TS(X) //Serial.print(micros() );Serial.print("\t");Serial.println(X); 23 #include KALEIDOSCOPE_HARDWARE_H 33 #define VERSION "locally-built" 36 #define KEYMAP_SIZE (sizeof(keymaps) / ROWS / COLS / sizeof(Key)) 38 #define USE_PLUGINS(plugins...) Kaleidoscope.use(plugins) 42 virtual void begin(
void) = 0;
49 void setup(
const byte keymap_count) {
69 inline void use(
int) {
77 template <
typename... Plugins>
99 static eventHandlerHook eventHandlers[
HOOK_MAX];
101 static void replaceEventHandlerHook(eventHandlerHook oldHook, eventHandlerHook newHook);
102 static void appendEventHandlerHook(eventHandlerHook hook);
103 static void useEventHandlerHook(eventHandlerHook hook);
105 typedef void (*loopHook)(
bool postClear);
108 static void replaceLoopHook(loopHook oldHook, loopHook newHook);
109 static void appendLoopHook(loopHook hook);
110 static void useLoopHook(loopHook hook);
112 static bool focusHook(
const char *command);
117 #define FOCUS_HOOK_KALEIDOSCOPE FOCUS_HOOK(Kaleidoscope.focusHook, \ 124 #define event_handler_hook_use(hook) Kaleidoscope.useEventHandlerHook(hook); 125 #define event_handler_hook_append(hook) Kaleidoscope.appendEventHandlerHook(hook) 126 #define event_handler_hook_replace(oldHook, newHook) Kaleidoscope.replaceEventHandlerHook(oldHook, newHook) 128 #define loop_hook_use(hook) Kaleidoscope.useLoopHook(hook) 129 #define loop_hook_append(hook) Kaleidoscope.appendLoopHook(hook) 130 #define loop_hook_replace(oldHook, newHook) Kaleidoscope.replaceLoopHook(oldHook, newHook) Definition: Kaleidoscope.h:45
byte byte col
Definition: TapDance.cpp:229
void use(int)
Definition: Kaleidoscope.h:69
Definition: key_defs.h:13
Kaleidoscope_ Kaleidoscope
Definition: Kaleidoscope.cpp:126
#define HARDWARE_IMPLEMENTATION
Definition: Kaleidoscope-Hardware-Model01.h:5
void use(KaleidoscopePlugin *p)
Definition: Kaleidoscope.h:63
HARDWARE_IMPLEMENTATION KeyboardHardware
Definition: Kaleidoscope-Hardware-Model01.cpp:245
#define HOOK_MAX
Definition: Kaleidoscope.h:28
void use(KaleidoscopePlugin *first, Plugins &&... plugins)
Definition: Kaleidoscope.h:78
void use()
Definition: Kaleidoscope.h:58
Definition: Kaleidoscope.h:40
virtual void begin(void)=0
byte row
Definition: TapDance.cpp:229
uint8_t keyState
Definition: Kaleidoscope-Macros.cpp:5
void setup(const byte keymap_count)
Definition: Kaleidoscope.h:49