diff options
Diffstat (limited to 'keyboards/punk75')
-rw-r--r-- | keyboards/punk75/keymaps/default/keymap.c | 3 | ||||
-rw-r--r-- | keyboards/punk75/keymaps/dsanchezseco/keymap.c | 3 | ||||
-rw-r--r-- | keyboards/punk75/keymaps/via/keymap.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/keyboards/punk75/keymaps/default/keymap.c b/keyboards/punk75/keymaps/default/keymap.c index fe4e87cce..30910a4a0 100644 --- a/keyboards/punk75/keymaps/default/keymap.c +++ b/keyboards/punk75/keymaps/default/keymap.c | |||
@@ -78,7 +78,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
78 | return true; | 78 | return true; |
79 | } | 79 | } |
80 | 80 | ||
81 | void encoder_update_user(uint8_t index, bool clockwise) { | 81 | bool encoder_update_user(uint8_t index, bool clockwise) { |
82 | if (index == 0) { /* Encoder on the LEFT */ | 82 | if (index == 0) { /* Encoder on the LEFT */ |
83 | if (clockwise) { | 83 | if (clockwise) { |
84 | tap_code(KC_VOLU); | 84 | tap_code(KC_VOLU); |
@@ -92,4 +92,5 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
92 | tap_code(KC_VOLD); | 92 | tap_code(KC_VOLD); |
93 | } | 93 | } |
94 | } | 94 | } |
95 | return true; | ||
95 | } | 96 | } |
diff --git a/keyboards/punk75/keymaps/dsanchezseco/keymap.c b/keyboards/punk75/keymaps/dsanchezseco/keymap.c index e3fb62f03..034af79a0 100644 --- a/keyboards/punk75/keymaps/dsanchezseco/keymap.c +++ b/keyboards/punk75/keymaps/dsanchezseco/keymap.c | |||
@@ -76,7 +76,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
76 | return true; | 76 | return true; |
77 | } | 77 | } |
78 | 78 | ||
79 | void encoder_update_user(uint8_t index, bool clockwise) { | 79 | bool encoder_update_user(uint8_t index, bool clockwise) { |
80 | if (index == 0) { /* Encoder on the LEFT */ | 80 | if (index == 0) { /* Encoder on the LEFT */ |
81 | if (clockwise) { | 81 | if (clockwise) { |
82 | tap_code(KC_VOLU); | 82 | tap_code(KC_VOLU); |
@@ -90,4 +90,5 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
90 | tap_code(KC_VOLD); | 90 | tap_code(KC_VOLD); |
91 | } | 91 | } |
92 | } | 92 | } |
93 | return true; | ||
93 | } | 94 | } |
diff --git a/keyboards/punk75/keymaps/via/keymap.c b/keyboards/punk75/keymaps/via/keymap.c index 265814d13..44deb8bd9 100644 --- a/keyboards/punk75/keymaps/via/keymap.c +++ b/keyboards/punk75/keymaps/via/keymap.c | |||
@@ -73,7 +73,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
73 | return true; | 73 | return true; |
74 | } | 74 | } |
75 | 75 | ||
76 | void encoder_update_user(uint8_t index, bool clockwise) { | 76 | bool encoder_update_user(uint8_t index, bool clockwise) { |
77 | if (index == 0) { /* Encoder on the LEFT */ | 77 | if (index == 0) { /* Encoder on the LEFT */ |
78 | if (clockwise) { | 78 | if (clockwise) { |
79 | tap_code(KC_VOLU); | 79 | tap_code(KC_VOLU); |
@@ -87,4 +87,5 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
87 | tap_code(KC_VOLD); | 87 | tap_code(KC_VOLD); |
88 | } | 88 | } |
89 | } | 89 | } |
90 | return true; | ||
90 | } | 91 | } |