aboutsummaryrefslogtreecommitdiff
path: root/keyboards/hub20/keymaps/left_hand_numpad/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/hub20/keymaps/left_hand_numpad/keymap.c')
-rw-r--r--keyboards/hub20/keymaps/left_hand_numpad/keymap.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/keyboards/hub20/keymaps/left_hand_numpad/keymap.c b/keyboards/hub20/keymaps/left_hand_numpad/keymap.c
index 395ebc15b..b5817ab3c 100644
--- a/keyboards/hub20/keymaps/left_hand_numpad/keymap.c
+++ b/keyboards/hub20/keymaps/left_hand_numpad/keymap.c
@@ -15,15 +15,13 @@
15 */ 15 */
16#include QMK_KEYBOARD_H 16#include QMK_KEYBOARD_H
17 17
18
19
20// #define LED_MERGE_NUMPAD_LEFT_HANDED_PLUS TRUE 18// #define LED_MERGE_NUMPAD_LEFT_HANDED_PLUS TRUE
21// #define LED_MERGE_NUMPAD_LEFT_HANDED_ENTER TRUE 19// #define LED_MERGE_NUMPAD_LEFT_HANDED_ENTER TRUE
22// #define LED_MERGE_NUMPAD_LEFT_HANDED_ZERO TRUE 20// #define LED_MERGE_NUMPAD_LEFT_HANDED_ZERO TRUE
23 21
22#define MO_NLCK LT(1, KC_NLCK) // Numlock on tap, layer change on hold
24 23
25#define MO_NLCK LT(1, KC_NLCK) // Numlock on tap, layer change on hold 24// clang-format off
26
27const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 25const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
28 [0] = LAYOUT_left_handed( 26 [0] = LAYOUT_left_handed(
29 KC_MUTE, KC_MPLY, 27 KC_MUTE, KC_MPLY,
@@ -42,8 +40,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
42 _______, _______ 40 _______, _______
43) 41)
44}; 42};
43// clang-format of
45 44
46void encoder_update_user(uint8_t index, bool clockwise) { 45bool encoder_update_user(uint8_t index, bool clockwise) {
47 if (index == 0) { /* Left Encoder */ 46 if (index == 0) { /* Left Encoder */
48 if (clockwise) { 47 if (clockwise) {
49 tap_code(KC_VOLU); 48 tap_code(KC_VOLU);
@@ -57,5 +56,5 @@ void encoder_update_user(uint8_t index, bool clockwise) {
57 tap_code(KC_MPRV); 56 tap_code(KC_MPRV);
58 } 57 }
59 } 58 }
59 return true;
60} 60}
61