X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=tmk_core%2Fcommon%2Fhook.h;h=ddd05c6fcb1e32cb64bc3c089f9105e003b7cd12;hb=12e5a3a13eb86852ad58c131e28ba29c5f09bb2d;hp=140e2779af701a4d3721491c757078b5260c625e;hpb=8a8a4cf677611292d544bcfbd30f04d2b16084c9;p=max%2Ftmk_keyboard.git diff --git a/tmk_core/common/hook.h b/tmk_core/common/hook.h index 140e2779..ddd05c6f 100644 --- a/tmk_core/common/hook.h +++ b/tmk_core/common/hook.h @@ -20,6 +20,7 @@ along with this program. If not, see . #include "keyboard.h" #include "led.h" +#include "action.h" #ifdef __cplusplus extern "C" { @@ -84,6 +85,10 @@ 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