aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/niu_mini/keymaps/spacebarracecar/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/niu_mini/keymaps/spacebarracecar/keymap.c')
-rw-r--r--keyboards/niu_mini/keymaps/spacebarracecar/keymap.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/keyboards/niu_mini/keymaps/spacebarracecar/keymap.c b/keyboards/niu_mini/keymaps/spacebarracecar/keymap.c
index b850e5fda..c3f6fb09a 100644
--- a/keyboards/niu_mini/keymaps/spacebarracecar/keymap.c
+++ b/keyboards/niu_mini/keymaps/spacebarracecar/keymap.c
@@ -12,7 +12,7 @@ enum layers {
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
-/* Base Layer
+/* Base
,-----------------------------------------------------------------------------------------------------------------------.
|Tab |Q |W |E |R |T |Z |U |I |O |P |Backspace|
|---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------|
@@ -68,7 +68,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
-/* Dead-Key
+/* Deadkey
,-----------------------------------------------------------------------------------------------------------------------.
| | | | | | | |Ü | |Ö | | |
|---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------|
@@ -87,15 +87,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, CU_DDQ, CU_DDQ, _______, _______, _______, _______, _______
),
-/* Nav
+/* Navigation
,-----------------------------------------------------------------------------------------------------------------------.
-|Caps Lock|PageDown |Up |PageUp |Home | | | |Win+Up | | |Del |
+|ESCT |PageDown |Up |PageUp |Home | | | |Win+Up | | |Del |
|---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------|
| |Left |Down |Right |End | | |Win+Left |Win+Down |Win+Right| |Enter |
|---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------|
| |Prev |Pause |Next |LowerVol |RaiseVol |Mute | | | | | |
|---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------|
-| | | | | | | | | | |RESET | |
+|RESET | | | | | | | | | | |Game |
`-----------------------------------------------------------------------------------------------------------------------'
*/
@@ -103,12 +103,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
CU_ESCT, KC_PGDN, KC_UP, KC_PGUP, KC_HOME, XXXXXXX, XXXXXXX, XXXXXXX, GUIU, XXXXXXX, XXXXXXX, KC_DEL,
_______, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, XXXXXXX, XXXXXXX, GUIL, GUID, GUIR, RGB_M_P, KC_ENT,
_______, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLD, KC_VOLU, KC_MUTE, RGB_TOG, RGB_MOD, RGB_HUI, CU_RGBV, _______,
- RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, CU_GAME
+ RESET, _______, _______, _______, _______, KC_SPC, KC_ENT, _______, _______, _______, _______, CU_GAME
)
};
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case MO(_LOWER):
if (game){
@@ -121,6 +121,7 @@ switch (keycode) {
} else {
return true;
}
+ default:
+ return true;
}
- return process_record_userspace(keycode, record);
}