mirror of
https://github.com/Cian-H/qmk_firmware.git
synced 2025-12-22 22:21: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) {
|
if (index == 0) {
|
||||||
// Volume control
|
// Volume control
|
||||||
if (clockwise) {
|
if (clockwise) {
|
||||||
tap_code(KC_VOLU);
|
tap_code(KC_WH_R);
|
||||||
} else {
|
} else {
|
||||||
tap_code(KC_VOLD);
|
tap_code(KC_WH_L);
|
||||||
}
|
}
|
||||||
} else if (index == 1) {
|
} else if (index == 1) {
|
||||||
// Page up/Page down
|
// Page up/Page down
|
||||||
if (clockwise) {
|
if (clockwise) {
|
||||||
tap_code(KC_PGDN);
|
tap_code(KC_WH_D);
|
||||||
} else {
|
} else {
|
||||||
tap_code(KC_PGUP);
|
tap_code(KC_WH_U);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user