aboutsummaryrefslogtreecommitdiff
path: root/keyboards/dumbpad/v0x_right
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-05-21 23:17:32 -0700
committerGitHub <noreply@github.com>2021-05-21 23:17:32 -0700
commita0fed0ea176d1c986e40fc4981b900509c90d66e (patch)
treeee12f5943046015ea0dce8e2a30a68bc8eb99dbe /keyboards/dumbpad/v0x_right
parent76c23b15abc824f867b48d8d5100dced2417d336 (diff)
downloadqmk_firmware-a0fed0ea176d1c986e40fc4981b900509c90d66e.tar.gz
qmk_firmware-a0fed0ea176d1c986e40fc4981b900509c90d66e.zip
Convert Encoder callbacks to be boolean functions (#12805)
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
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}