Browse Source

Implement a keypad 00 macro for GHPad

lr94
Kai Ryu 9 years ago
parent
commit
7b5e614b0b
1 changed files with 15 additions and 0 deletions
  1. 15
    0
      keyboard/ghpad/keymap_4x6.c

+ 15
- 0
keyboard/ghpad/keymap_4x6.c View File

@@ -49,3 +49,18 @@ uint16_t fn_actions_count(void) {
return sizeof(fn_actions) / sizeof(fn_actions[0]);
}
#endif

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;
}