Merge pull request #32 from algernon/h/hooks/event-handler-default-fix

Add the default key event handler in Keyboardio_::setup
pull/33/head
Jesse Vincent 8 years ago committed by GitHub
commit 3426d5b4af

@ -5,6 +5,7 @@ Keyboardio_::Keyboardio_(void) {
void
Keyboardio_::setup(void) {
event_handler_hook_add (handle_key_event_default);
wdt_disable();
delay(100);
Keyboard.begin();

@ -41,10 +41,7 @@ void handle_synthetic_key_event(Key mappedKey, uint8_t currentState, uint8_t pre
}
}
custom_handler_t eventHandlers[HOOK_MAX] = {
handle_key_event_default,
(custom_handler_t) NULL
};
custom_handler_t eventHandlers[HOOK_MAX] = {NULL};
Key lookup_key(byte keymap, byte row, byte col) {
Key mappedKey;

Loading…
Cancel
Save