]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - tmk_core/common/hook.h
xt_usb: Fix XT soft reset
[max/tmk_keyboard.git] / tmk_core / common / hook.h
index 140e2779af701a4d3721491c757078b5260c625e..ddd05c6fcb1e32cb64bc3c089f9105e003b7cd12 100644 (file)
@@ -20,6 +20,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #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