mirror of
https://github.com/Cian-H/qmk_firmware.git
synced 2025-12-23 14:41:58 +00:00
Changed encoded functionality fir fortary encoders
This commit is contained in:
@@ -106,16 +106,16 @@ bool encoder_update_kb(uint8_t index, bool clockwise) {
|
||||
if (index == 0) {
|
||||
// Volume control
|
||||
if (clockwise) {
|
||||
tap_code(KC_VOLU);
|
||||
tap_code(KC_WH_R);
|
||||
} else {
|
||||
tap_code(KC_VOLD);
|
||||
tap_code(KC_WH_L);
|
||||
}
|
||||
} else if (index == 1) {
|
||||
// Page up/Page down
|
||||
if (clockwise) {
|
||||
tap_code(KC_PGDN);
|
||||
tap_code(KC_WH_D);
|
||||
} else {
|
||||
tap_code(KC_PGUP);
|
||||
tap_code(KC_WH_U);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user