diff options
Diffstat (limited to 'keyboards/monarch')
-rw-r--r-- | keyboards/monarch/keymaps/default/keymap.c | 3 | ||||
-rw-r--r-- | keyboards/monarch/keymaps/iso/keymap.c | 3 | ||||
-rw-r--r-- | keyboards/monarch/keymaps/via/keymap.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/keyboards/monarch/keymaps/default/keymap.c b/keyboards/monarch/keymaps/default/keymap.c index e4d4e9ef3..fb480b8a7 100644 --- a/keyboards/monarch/keymaps/default/keymap.c +++ b/keyboards/monarch/keymaps/default/keymap.c | |||
@@ -34,10 +34,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
34 | ) | 34 | ) |
35 | }; | 35 | }; |
36 | 36 | ||
37 | void encoder_update_user(uint8_t index, bool clockwise) { | 37 | bool encoder_update_user(uint8_t index, bool clockwise) { |
38 | if (clockwise) { | 38 | if (clockwise) { |
39 | tap_code(KC_VOLU); | 39 | tap_code(KC_VOLU); |
40 | } else { | 40 | } else { |
41 | tap_code(KC_VOLD); | 41 | tap_code(KC_VOLD); |
42 | } | 42 | } |
43 | return true; | ||
43 | } | 44 | } |
diff --git a/keyboards/monarch/keymaps/iso/keymap.c b/keyboards/monarch/keymaps/iso/keymap.c index 71f02675e..2a6ea3a34 100644 --- a/keyboards/monarch/keymaps/iso/keymap.c +++ b/keyboards/monarch/keymaps/iso/keymap.c | |||
@@ -34,10 +34,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
34 | ) | 34 | ) |
35 | }; | 35 | }; |
36 | 36 | ||
37 | void encoder_update_user(uint8_t index, bool clockwise) { | 37 | bool encoder_update_user(uint8_t index, bool clockwise) { |
38 | if (clockwise) { | 38 | if (clockwise) { |
39 | tap_code(KC_VOLU); | 39 | tap_code(KC_VOLU); |
40 | } else { | 40 | } else { |
41 | tap_code(KC_VOLD); | 41 | tap_code(KC_VOLD); |
42 | } | 42 | } |
43 | return true; | ||
43 | } | 44 | } |
diff --git a/keyboards/monarch/keymaps/via/keymap.c b/keyboards/monarch/keymaps/via/keymap.c index 1f14b195d..079ff65a6 100644 --- a/keyboards/monarch/keymaps/via/keymap.c +++ b/keyboards/monarch/keymaps/via/keymap.c | |||
@@ -76,7 +76,7 @@ void matrix_scan_user(void) { | |||
76 | } | 76 | } |
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 (clockwise) { | 80 | if (clockwise) { |
81 | encoder_cw.pressed = true; | 81 | encoder_cw.pressed = true; |
82 | encoder_cw.time = (timer_read() | 1); | 82 | encoder_cw.time = (timer_read() | 1); |
@@ -86,4 +86,5 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
86 | encoder_ccw.time = (timer_read() | 1); | 86 | encoder_ccw.time = (timer_read() | 1); |
87 | action_exec(encoder_ccw); | 87 | action_exec(encoder_ccw); |
88 | } | 88 | } |
89 | return true; | ||
89 | } | 90 | } |