Browse Source
Replace KC__VOLUP and KC__VOLDOWN with single underscore version.
Co-authored-by: Ryan <fauxpark@gmail.com>
pull/17289/head
Will Winder
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
4 deletions
-
keyboards/chocofly/chocofly.c
-
keyboards/chocofly/v1/keymaps/winder/keymap.c
|
|
@ -7,9 +7,9 @@ |
|
|
|
bool encoder_update_kb(uint8_t index, bool clockwise) { |
|
|
|
if (!encoder_update_user(index, clockwise)) { return false; } |
|
|
|
if (clockwise) { |
|
|
|
tap_code(KC__VOLUP); |
|
|
|
tap_code(KC_VOLU); |
|
|
|
} else { |
|
|
|
tap_code(KC__VOLDOWN); |
|
|
|
tap_code(KC_VOLD); |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
@ -44,9 +44,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
|
|
|
bool encoder_update_user(uint8_t index, bool clockwise) { |
|
|
|
if (index == 0) { |
|
|
|
if (clockwise) { |
|
|
|
tap_code(KC__VOLDOWN); |
|
|
|
tap_code(KC_VOLD); |
|
|
|
} else { |
|
|
|
tap_code(KC__VOLUP); |
|
|
|
tap_code(KC_VOLU); |
|
|
|
} |
|
|
|
} |
|
|
|
return false; |
|
|
|