aboutsummaryrefslogtreecommitdiff
path: root/keyboards/dumbpad/v0x_right
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/dumbpad/v0x_right')
-rw-r--r--keyboards/dumbpad/v0x_right/keymaps/default/keymap.c3
-rw-r--r--keyboards/dumbpad/v0x_right/templates/keymap.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/keyboards/dumbpad/v0x_right/keymaps/default/keymap.c b/keyboards/dumbpad/v0x_right/keymaps/default/keymap.c
index 4050ac942..48002ff4d 100644
--- a/keyboards/dumbpad/v0x_right/keymaps/default/keymap.c
+++ b/keyboards/dumbpad/v0x_right/keymaps/default/keymap.c
@@ -72,7 +72,7 @@ void keyboard_post_init_user(void) {
72 // debug_mouse = true; 72 // debug_mouse = true;
73} 73}
74 74
75void encoder_update_user(uint8_t index, bool clockwise) { 75bool encoder_update_user(uint8_t index, bool clockwise) {
76 /* Custom encoder control - handles CW/CCW turning of encoder 76 /* Custom encoder control - handles CW/CCW turning of encoder
77 * Default behavior: 77 * Default behavior:
78 * main layer: 78 * main layer:
@@ -103,4 +103,5 @@ void encoder_update_user(uint8_t index, bool clockwise) {
103 break; 103 break;
104 } 104 }
105 } 105 }
106 return true;
106} 107}
diff --git a/keyboards/dumbpad/v0x_right/templates/keymap.c b/keyboards/dumbpad/v0x_right/templates/keymap.c
index 11ed74518..6f862b822 100644
--- a/keyboards/dumbpad/v0x_right/templates/keymap.c
+++ b/keyboards/dumbpad/v0x_right/templates/keymap.c
@@ -2,7 +2,7 @@
2const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {__KEYMAP_GOES_HERE__}; 2const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {__KEYMAP_GOES_HERE__};
3 3
4 4
5void encoder_update_user(uint8_t index, bool clockwise) { 5bool encoder_update_user(uint8_t index, bool clockwise) {
6 if (index == 0) { 6 if (index == 0) {
7 switch (get_highest_layer(layer_state)) { 7 switch (get_highest_layer(layer_state)) {
8 case 0: 8 case 0:
@@ -22,4 +22,5 @@ void encoder_update_user(uint8_t index, bool clockwise) {
22 break; 22 break;
23 } 23 }
24 } 24 }
25 return true;
25} 26}