summaryrefslogtreecommitdiff
path: root/keyboards/kbdfans/niu_mini/keymaps/tobias
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-10-16 08:29:43 +1100
committerGitHub <noreply@github.com>2022-10-15 22:29:43 +0100
commit5e4b076af3c99d36632d6b92f3ddd046f38a01af (patch)
treeed704dea66f5a16e364efc39a48abeb63c8226ba /keyboards/kbdfans/niu_mini/keymaps/tobias
parent92d7964b285cf852d702cc4dea7e21e838f118a2 (diff)
Remove legacy keycodes, part 5 (#18710)
* `KC_SLCK` -> `KC_SCRL` * `KC_NLCK` -> `KC_NUM`
Diffstat (limited to 'keyboards/kbdfans/niu_mini/keymaps/tobias')
-rw-r--r--keyboards/kbdfans/niu_mini/keymaps/tobias/keymap.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/keyboards/kbdfans/niu_mini/keymaps/tobias/keymap.c b/keyboards/kbdfans/niu_mini/keymaps/tobias/keymap.c
index 67f0111112..d100d8e0d2 100644
--- a/keyboards/kbdfans/niu_mini/keymaps/tobias/keymap.c
+++ b/keyboards/kbdfans/niu_mini/keymaps/tobias/keymap.c
@@ -75,7 +75,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
*/
[_FNL1] = LAYOUT_ortho_4x12(
TBMACRO, KC_MPRV, KC_MPLY, KC_MNXT, ALT_F4, KC_CAPS, KC_ESC, KC_PGUP, KC_UP, KC_PGDN, KC_PSCR, KC_BSPC,
- TT(_FNL1), _______, KC_VOLD, KC_VOLU, KC_MUTE, KC_NLCK, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_DEL,
+ TT(_FNL1), _______, KC_VOLD, KC_VOLU, KC_MUTE, KC_NUM, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_DEL,
KC_LSFT, CTLZ, CTLX, CTLC, CTLV, _______, KC_END, _______, _______, _______, LSFT(KC_MINS), _______,
_______, _______, CTALDEL, _______, _______, _______, _______, TO(_MOUSE), _______, _______, LSFT(KC_1), _______
),
@@ -136,8 +136,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* `-----------------------------------------------------------------------------------'
*/
[_FNL2] = LAYOUT_ortho_4x12(
- TBMACRO, KC_MPRV, KC_MPLY, KC_MNXT, ALT_F4, KC_CAPS, _______, KC_PSCR, KC_INS, KC_HOME, KC_PGUP, KC_SLCK,
- _______, _______, KC_VOLD, KC_VOLU, KC_MUTE, KC_NLCK, _______, _______, KC_DEL, KC_END, KC_PGDN, KC_PAUS,
+ TBMACRO, KC_MPRV, KC_MPLY, KC_MNXT, ALT_F4, KC_CAPS, _______, KC_PSCR, KC_INS, KC_HOME, KC_PGUP, KC_SCRL,
+ _______, _______, KC_VOLD, KC_VOLU, KC_MUTE, KC_NUM, _______, _______, KC_DEL, KC_END, KC_PGDN, KC_PAUS,
_______, CTLZ, CTLX, CTLC, CTLV, _______, _______, _______, _______, KC_UP, _______, KC_ENT,
_______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, TO(_QWERTY)
),
@@ -191,7 +191,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
*/
[_FNL3] = LAYOUT_ortho_4x12(
TBMACRO, KC_MPRV, KC_MPLY, KC_MNXT, ALT_F4, KC_CAPS, KC_ESC, KC_PGUP, KC_UP, KC_PGDN, KC_PSCR, KC_BSPC,
- _______, _______, KC_VOLD, KC_VOLU, KC_MUTE, KC_NLCK, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_DEL,
+ _______, _______, KC_VOLD, KC_VOLU, KC_MUTE, KC_NUM, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_DEL,
KC_LSFT, _______, _______, _______, _______, _______, KC_END, _______, _______, _______, LSFT(KC_MINS), _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, LSFT(KC_1), _______
),
@@ -242,9 +242,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return false;
case DGRMCRO:
if(!bnumlock) {
- //register_code(KC_NLCK);
- //unregister_code(KC_NLCK);
- tap_code(KC_NLCK);
+ //register_code(KC_NUM);
+ //unregister_code(KC_NUM);
+ tap_code(KC_NUM);
bnumlock = true;
}
//SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_P0) SS_TAP(X_P1) SS_TAP(X_P7) SS_TAP(X_P6) SS_UP(X_LALT));
@@ -303,13 +303,13 @@ layer_state_t layer_state_set_user(layer_state_t state) {
rgbflag(0x00, 0x00, 0x00);
}
if(bnumlock) {
- tap_code(KC_NLCK);
+ tap_code(KC_NUM);
}
break;
case _LOWER:
rgblight_mode(1);
if(!bnumlock) {
- tap_code(KC_NLCK);
+ tap_code(KC_NUM);
}
rgbflag(0xFF, 0x00, 0x00);
@@ -318,21 +318,21 @@ layer_state_t layer_state_set_user(layer_state_t state) {
rgblight_mode(1);
rgbflag(0xFF, 0xFF, 0xFF);
if(bnumlock) {
- tap_code(KC_NLCK);
+ tap_code(KC_NUM);
}
break;
case _RAISE:
rgblight_mode(1);
rgbflag(0x00, 0xFF, 0x00);
if(bnumlock) {
- tap_code(KC_NLCK);
+ tap_code(KC_NUM);
}
break;
case _FNL1:
rgblight_mode(1);
rgbflag(0x00, 0x00, 0xFF);
if(bnumlock) {
- tap_code(KC_NLCK);
+ tap_code(KC_NUM);
}
break;
case _GAMEMODE:
@@ -343,13 +343,13 @@ layer_state_t layer_state_set_user(layer_state_t state) {
rgblight_mode(1);
rgbflag(0x00, 0xFF, 0xFF);
if(bnumlock) {
- tap_code(KC_NLCK);
+ tap_code(KC_NUM);
}
break;
default: // for any other layers, or the default layer
rgblight_mode(1);
if(bnumlock) {
- tap_code(KC_NLCK);
+ tap_code(KC_NUM);
}
rgbflag(0xFF, 0xFF, 0xFF);
break;
@@ -368,8 +368,8 @@ layer_state_t layer_state_set_user(layer_state_t state) {
if (layer & (1<<2)) {
if(!bnumlock) {
numlock_changed = true;
- register_code(KC_NLCK);
- unregister_code(KC_NLCK);
+ register_code(KC_NUM);
+ unregister_code(KC_NUM);
bnumlock = true;
}
}