summaryrefslogtreecommitdiffstats
path: root/keyboards/roadkit/keymaps/mjt
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/roadkit/keymaps/mjt')
-rw-r--r--keyboards/roadkit/keymaps/mjt/keymap.c59
1 files changed, 31 insertions, 28 deletions
diff --git a/keyboards/roadkit/keymaps/mjt/keymap.c b/keyboards/roadkit/keymaps/mjt/keymap.c
index d3c82ac84a..a1af5b1f28 100644
--- a/keyboards/roadkit/keymaps/mjt/keymap.c
+++ b/keyboards/roadkit/keymaps/mjt/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;
@@ -46,31 +44,36 @@ enum minivan_keycodes {
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [_NUMPAD] = /* Numpad */
- KEYMAP(KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS, \
- KC_KP_4, KC_KP_5, KC_KP_6, \
- KC_KP_1, KC_KP_2, KC_KP_3, NAVIGATION, \
- EXCEL, KC_KP_DOT),
- [_EXCEL] = /* Excel related */
- KEYMAP(KC_KP_SLASH, KC_KP_ASTERISK, KC_MINS, KC_TAB, \
- KC_QUOT, KC_KP_EQUAL, PARENS , \
- KC_DQT, BRACKETS, BRACES, _______, \
- _______, MO(_DYN)),
- [_NAVIGATION] = /* Navigation */
- KEYMAP(KC_HOME, _______, KC_PGUP, KC_TAB, \
- KC_END, KC_UP, KC_PGDN, \
- KC_LEFT, KC_DOWN, KC_RIGHT, _______, \
- _______, MO(_DYN)),
- [_ADJUST] = /* Adjustments */
- KEYMAP(KC_NUMLOCK, MACSLEEP, BACKLIT, _______, \
- KC_BSPC, _______, KC_DEL, \
- EXCEL_LOCK, NUMPAD_LOCK, NAVIGATION_LOCK, _______, \
- _______, _______),
- [_DYN] = /* DYNAMIC MACRO */
- KEYMAP(DYN_REC_START1, DYN_REC_START2, _______, _______, \
- _______, _______, _______, \
- DYN_MACRO_PLAY1, DYN_MACRO_PLAY2, _______, _______, \
- _______, _______),
+ [_NUMPAD] = LAYOUT_numpad_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_1, KC_KP_2, KC_KP_3, NAVIGATION, \
+ EXCEL, KC_KP_DOT
+ ),
+ [_EXCEL] = LAYOUT_numpad_4x4( /* Excel related */
+ KC_KP_SLASH, KC_KP_ASTERISK, KC_MINS, KC_TAB, \
+ KC_QUOT, KC_KP_EQUAL, PARENS, \
+ KC_DQT, BRACKETS, BRACES, _______, \
+ _______, MO(_DYN)
+ ),
+ [_NAVIGATION] = LAYOUT_numpad_4x4( /* Navigation */
+ KC_HOME, _______, KC_PGUP, KC_TAB, \
+ KC_END, KC_UP, KC_PGDN, \
+ KC_LEFT, KC_DOWN, KC_RIGHT, _______, \
+ _______, MO(_DYN)
+ ),
+ [_ADJUST] = LAYOUT_numpad_4x4( /* Adjustments */
+ KC_NUMLOCK, MACSLEEP, BACKLIT, _______, \
+ KC_BSPC, _______, KC_DEL, \
+ EXCEL_LOCK, NUMPAD_LOCK, NAVIGATION_LOCK, _______, \
+ _______, _______
+ ),
+ [_DYN] = LAYOUT_numpad_4x4( /* DYNAMIC MACRO */
+ DYN_REC_START1, DYN_REC_START2, _______, _______, \
+ _______, _______, _______, \
+ DYN_MACRO_PLAY1, DYN_MACRO_PLAY2, _______, _______, \
+ _______, _______
+ ),
};
const uint16_t PROGMEM fn_actions[] = {