diff options
Diffstat (limited to 'quantum/template/keymaps/default/keymap.c')
| -rw-r--r-- | quantum/template/keymaps/default/keymap.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/quantum/template/keymaps/default/keymap.c b/quantum/template/keymaps/default/keymap.c new file mode 100644 index 000000000..e28a4723e --- /dev/null +++ b/quantum/template/keymaps/default/keymap.c | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | #include "%KEYBOARD%.h" | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | [0] = KEYMAP( /* Base */ | ||
| 5 | KC_A, KC_1, KC_H, \ | ||
| 6 | KC_TAB, KC_SPC \ | ||
| 7 | ), | ||
| 8 | }; | ||
| 9 | |||
| 10 | const uint16_t PROGMEM fn_actions[] = { | ||
| 11 | |||
| 12 | }; | ||
| 13 | |||
| 14 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||
| 15 | { | ||
| 16 | // MACRODOWN only works in this function | ||
| 17 | switch(id) { | ||
| 18 | case 0: | ||
| 19 | if (record->event.pressed) { | ||
| 20 | register_code(KC_RSFT); | ||
| 21 | } else { | ||
| 22 | unregister_code(KC_RSFT); | ||
| 23 | } | ||
| 24 | break; | ||
| 25 | } | ||
| 26 | return MACRO_NONE; | ||
| 27 | }; | ||
| 28 | |||
| 29 | |||
| 30 | void matrix_init_user(void) { | ||
| 31 | |||
| 32 | } | ||
| 33 | |||
| 34 | void matrix_scan_user(void) { | ||
| 35 | |||
| 36 | } | ||
| 37 | |||
| 38 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 39 | return true; | ||
| 40 | } | ||
| 41 | |||
| 42 | void led_set_user(uint8_t usb_led) { | ||
| 43 | |||
| 44 | } \ No newline at end of file | ||
