diff options
author | noroadsleft <18669334+noroadsleft@users.noreply.github.com> | 2018-07-04 17:59:35 -0700 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-07-04 17:59:35 -0700 |
commit | 3204dec09636f94275707368fb1ba37632c82042 (patch) | |
tree | d1c3cc121de2bf844654c6d28fa5eececec9de95 /keyboards/roadkit/keymaps/singles | |
parent | d5def73f6eccc3727d7aa192b9204322af2933ba (diff) |
Roadkit refactor and Configurator support (#3303)
* Matrix refactor: rename KEYMAP to LAYOUT_numpad_4x4
* Keymap refactor: QMK_KEYBOARD_H, matrix renames, readability
* Configurator support
* Add numpad_4x4 LAYOUT to rules.mk
Diffstat (limited to 'keyboards/roadkit/keymaps/singles')
-rw-r--r-- | keyboards/roadkit/keymaps/singles/keymap.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/keyboards/roadkit/keymaps/singles/keymap.c b/keyboards/roadkit/keymaps/singles/keymap.c index 79831652c7..4c246f5136 100644 --- a/keyboards/roadkit/keymaps/singles/keymap.c +++ b/keyboards/roadkit/keymaps/singles/keymap.c @@ -1,6 +1,4 @@ -#include "roadkit.h" -#include "action_layer.h" -#include "eeconfig.h" +#include QMK_KEYBOARD_H extern keymap_config_t keymap_config; @@ -22,16 +20,18 @@ extern keymap_config_t keymap_config; const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_NP] = /* Numpad */ - LAYOUT_ortho_4x4(KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS, \ - KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_MINUS, \ - KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_ENTER, \ - KC_KP_0, KC_KP_DOT, TG(_L1), KC_BSPC), - [_L1] = /* LAYER 1 */ - LAYOUT_ortho_4x4(KC_NUMLOCK, KC_TRNS, KC_TRNS, KC_VOLU, \ - KC_TRNS, KC_UP, KC_TRNS, KC_VOLD, \ - KC_LEFT, KC_DOWN, KC_RIGHT, KC_TRNS, \ - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) + [_NP] = LAYOUT_ortho_4x4( /* Numpad */ + KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS, \ + KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_MINUS, \ + KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_ENTER, \ + KC_KP_0, KC_KP_DOT, TG(_L1), KC_BSPC + ), + [_L1] = LAYOUT_ortho_4x4( /* LAYER 1 */ + KC_NUMLOCK, _______, _______, KC_VOLU, \ + _______, KC_UP, _______, KC_VOLD, \ + KC_LEFT, KC_DOWN, KC_RIGHT, _______, \ + _______, _______, _______, _______ + ) }; const uint16_t PROGMEM fn_actions[] = { |