diff options
Diffstat (limited to 'keyboards/hub16')
-rw-r--r-- | keyboards/hub16/keymaps/ahk_companion/keymap.c | 3 | ||||
-rwxr-xr-x | keyboards/hub16/keymaps/default/keymap.c | 3 | ||||
-rwxr-xr-x | keyboards/hub16/keymaps/macro/keymap.c | 3 | ||||
-rw-r--r-- | keyboards/hub16/keymaps/peepeetee/keymap.c | 3 | ||||
-rwxr-xr-x | keyboards/hub16/keymaps/via/keymap.c | 3 |
5 files changed, 10 insertions, 5 deletions
diff --git a/keyboards/hub16/keymaps/ahk_companion/keymap.c b/keyboards/hub16/keymaps/ahk_companion/keymap.c index bbc2ac09a..10f641b6f 100644 --- a/keyboards/hub16/keymaps/ahk_companion/keymap.c +++ b/keyboards/hub16/keymaps/ahk_companion/keymap.c | |||
@@ -103,7 +103,7 @@ const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST( | |||
103 | my_layer5_layer | 103 | my_layer5_layer |
104 | ); | 104 | ); |
105 | 105 | ||
106 | void encoder_update_user(uint8_t index, bool clockwise) { | 106 | bool encoder_update_user(uint8_t index, bool clockwise) { |
107 | if (index == 0) { /* Left Encoder */ | 107 | if (index == 0) { /* Left Encoder */ |
108 | if (clockwise) { | 108 | if (clockwise) { |
109 | tap_code(KC_MPRV); | 109 | tap_code(KC_MPRV); |
@@ -117,6 +117,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
117 | tap_code(KC_VOLU); | 117 | tap_code(KC_VOLU); |
118 | } | 118 | } |
119 | } | 119 | } |
120 | return true; | ||
120 | } | 121 | } |
121 | void post_process_record_user(uint16_t keycode, keyrecord_t *record) { | 122 | void post_process_record_user(uint16_t keycode, keyrecord_t *record) { |
122 | // Allow for a preview of changes when modifying RGB | 123 | // Allow for a preview of changes when modifying RGB |
diff --git a/keyboards/hub16/keymaps/default/keymap.c b/keyboards/hub16/keymaps/default/keymap.c index e077fe740..1c1d188f2 100755 --- a/keyboards/hub16/keymaps/default/keymap.c +++ b/keyboards/hub16/keymaps/default/keymap.c | |||
@@ -33,7 +33,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
33 | ), | 33 | ), |
34 | }; | 34 | }; |
35 | 35 | ||
36 | void encoder_update_user(uint8_t index, bool clockwise) { | 36 | bool encoder_update_user(uint8_t index, bool clockwise) { |
37 | if (index == 0) { /* Left Encoder */ | 37 | if (index == 0) { /* Left Encoder */ |
38 | if (clockwise) { | 38 | if (clockwise) { |
39 | tap_code(KC_VOLD); | 39 | tap_code(KC_VOLD); |
@@ -47,4 +47,5 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
47 | tap_code(KC_MNXT); | 47 | tap_code(KC_MNXT); |
48 | } | 48 | } |
49 | } | 49 | } |
50 | return true; | ||
50 | } | 51 | } |
diff --git a/keyboards/hub16/keymaps/macro/keymap.c b/keyboards/hub16/keymaps/macro/keymap.c index 3bf8fa31f..e4cf9da5e 100755 --- a/keyboards/hub16/keymaps/macro/keymap.c +++ b/keyboards/hub16/keymaps/macro/keymap.c | |||
@@ -54,7 +54,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
54 | 54 | ||
55 | // Keyboard is setup to 'wrap' the pressed key with an unused Fxx key, | 55 | // Keyboard is setup to 'wrap' the pressed key with an unused Fxx key, |
56 | // allowing for easy differentiation from a real keyboard. | 56 | // allowing for easy differentiation from a real keyboard. |
57 | void encoder_update_user(uint8_t index, bool clockwise) { | 57 | bool encoder_update_user(uint8_t index, bool clockwise) { |
58 | if (index == 0) { /* Left Encoder */ | 58 | if (index == 0) { /* Left Encoder */ |
59 | if (clockwise) { | 59 | if (clockwise) { |
60 | register_code(KC_WRAP); | 60 | register_code(KC_WRAP); |
@@ -76,6 +76,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
76 | unregister_code(KC_WRAP); | 76 | unregister_code(KC_WRAP); |
77 | } | 77 | } |
78 | } | 78 | } |
79 | return true; | ||
79 | } | 80 | } |
80 | 81 | ||
81 | // Below stolen from TaranVH (https://github.com/TaranVH/2nd-keyboard/blob/master/HASU_USB/F24/keymap.c) | 82 | // Below stolen from TaranVH (https://github.com/TaranVH/2nd-keyboard/blob/master/HASU_USB/F24/keymap.c) |
diff --git a/keyboards/hub16/keymaps/peepeetee/keymap.c b/keyboards/hub16/keymaps/peepeetee/keymap.c index f0e393b26..4790feda0 100644 --- a/keyboards/hub16/keymaps/peepeetee/keymap.c +++ b/keyboards/hub16/keymaps/peepeetee/keymap.c | |||
@@ -142,7 +142,7 @@ const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST( | |||
142 | // my_layer5_layer | 142 | // my_layer5_layer |
143 | ); | 143 | ); |
144 | 144 | ||
145 | void encoder_update_user(uint8_t index, bool clockwise) { | 145 | bool encoder_update_user(uint8_t index, bool clockwise) { |
146 | if (index == 0) { /* Left Encoder */ | 146 | if (index == 0) { /* Left Encoder */ |
147 | if (clockwise) { | 147 | if (clockwise) { |
148 | tap_code(KC_MPRV); | 148 | tap_code(KC_MPRV); |
@@ -156,6 +156,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
156 | tap_code(KC_VOLU); | 156 | tap_code(KC_VOLU); |
157 | } | 157 | } |
158 | } | 158 | } |
159 | return true; | ||
159 | } | 160 | } |
160 | void post_process_record_user(uint16_t keycode, keyrecord_t *record) { | 161 | void post_process_record_user(uint16_t keycode, keyrecord_t *record) { |
161 | // Allow for a preview of changes when modifying RGB | 162 | // Allow for a preview of changes when modifying RGB |
diff --git a/keyboards/hub16/keymaps/via/keymap.c b/keyboards/hub16/keymaps/via/keymap.c index c6f119adb..c7facf2ed 100755 --- a/keyboards/hub16/keymaps/via/keymap.c +++ b/keyboards/hub16/keymaps/via/keymap.c | |||
@@ -49,7 +49,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
49 | ), | 49 | ), |
50 | }; | 50 | }; |
51 | 51 | ||
52 | void encoder_update_user(uint8_t index, bool clockwise) { | 52 | bool encoder_update_user(uint8_t index, bool clockwise) { |
53 | if (index == 0) { /* Left Encoder */ | 53 | if (index == 0) { /* Left Encoder */ |
54 | if (clockwise) { | 54 | if (clockwise) { |
55 | tap_code(KC_VOLD); | 55 | tap_code(KC_VOLD); |
@@ -63,4 +63,5 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
63 | tap_code(KC_MNXT); | 63 | tap_code(KC_MNXT); |
64 | } | 64 | } |
65 | } | 65 | } |
66 | return true; | ||
66 | } | 67 | } |