summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorCarlos Martins <carlosmartins8@gmail.com>2021-06-09 18:32:16 +0100
committerGitHub <noreply@github.com>2021-06-10 03:32:16 +1000
commitca0070d11cc258ca92c9f44a6e8f63946b55d91e (patch)
treea7a541c166108123aa1fc0611567ae1afec6458d /keyboards
parenta47f482d241e26204e27953bec54cf701446dafa (diff)
Updated encoder_update_user on my keymap to follow the new signature on quantum (#13152)
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/sofle/keymaps/killmaster/keymap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/keyboards/sofle/keymaps/killmaster/keymap.c b/keyboards/sofle/keymaps/killmaster/keymap.c
index d292c64ab4..950dee36b1 100644
--- a/keyboards/sofle/keymaps/killmaster/keymap.c
+++ b/keyboards/sofle/keymaps/killmaster/keymap.c
@@ -56,7 +56,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
*/
[_QWERTY] = LAYOUT(
- KC_MINS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_GRV,
+ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, KC_MPLY,KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC,
@@ -344,7 +344,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
#ifdef ENCODER_ENABLE
-void encoder_update_user(int8_t index, bool clockwise) {
+bool encoder_update_user(uint8_t index, bool clockwise) {
uint8_t temp_mod = get_mods();
uint8_t temp_osm = get_oneshot_mods();
bool is_ctrl = (temp_mod | temp_osm) & MOD_MASK_CTRL;
@@ -397,6 +397,7 @@ void encoder_update_user(int8_t index, bool clockwise) {
tap_code_delay(mapped_code, MEDIA_KEY_DELAY);
}
}
+ return true;
}
#endif