X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=tmk_core%2Fcommon%2Fhook.h;h=ddd05c6fcb1e32cb64bc3c089f9105e003b7cd12;hb=c6a6049bc85609b05a6502dbbed524d669b2b7a5;hp=56fe567774099f9160898031971831866e79e51f;hpb=74019c8e417dbfac0b925effa1b29769d04bd8d5;p=max%2Ftmk_keyboard.git diff --git a/tmk_core/common/hook.h b/tmk_core/common/hook.h index 56fe5677..ddd05c6f 100644 --- a/tmk_core/common/hook.h +++ b/tmk_core/common/hook.h @@ -20,6 +20,11 @@ along with this program. If not, see . #include "keyboard.h" #include "led.h" +#include "action.h" + +#ifdef __cplusplus +extern "C" { +#endif /* ------------------------------------- * Protocol hooks @@ -47,6 +52,10 @@ void hook_usb_suspend_loop(void); * the "normal" indicator LED status by default. */ void hook_usb_wakeup(void); +/* Called repeatedly until getting to CONFIGURED state */ +/* Default behaviour: do nothing. */ +void hook_usb_startup_wait_loop(void); + /* ------------------------------------- * Keyboard hooks @@ -76,5 +85,12 @@ void hook_keyboard_leds_change(uint8_t led_status); /* Default behaviour: do nothing. */ void hook_bootmagic(void); +/* Called on before processing key event */ +/* returns true if the event is consumed and default action is not needed. */ +bool hook_process_action(keyrecord_t *record); + +#ifdef __cplusplus +} +#endif #endif /* _HOOKS_H_ */