From ba26bdd937219c1ec32ca0bb49057f087c117985 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Thu, 27 Nov 2014 15:32:14 +0900 Subject: [PATCH] Implement keypad 00 macro for GH60 --- keyboard/gh60/keymap_poker2.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/keyboard/gh60/keymap_poker2.c b/keyboard/gh60/keymap_poker2.c index 3d22553d..8eb83007 100644 --- a/keyboard/gh60/keymap_poker2.c +++ b/keyboard/gh60/keymap_poker2.c @@ -71,7 +71,22 @@ uint16_t fn_actions_count(void) { } #endif -enum { +enum macro_id { + KEYPAD_00 = 0, +}; + +const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) +{ + switch (id) { + case KEYPAD_00: + return (record->event.pressed ? + MACRO( T(P0), T(P0), END ) : + MACRO_NONE ); + } + return MACRO_NONE; +} + +enum function_id { TRICKY_ESC = 0, };