mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-09-22 03:39:46 -04:00
remove encoder as it's keyboard defined
This commit is contained in:
parent
c3b68102ae
commit
f81d2a9fa8
1 changed files with 1 additions and 37 deletions
|
@ -236,39 +236,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
// ),
|
// ),
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef ENCODER_ENABLE
|
|
||||||
bool encoder_update_user(uint8_t index, bool clockwise) {
|
|
||||||
|
|
||||||
if (index == 0) {
|
|
||||||
// Volume control
|
|
||||||
if (clockwise) {
|
|
||||||
tap_code(KC_VOLU);
|
|
||||||
} else {
|
|
||||||
tap_code(KC_VOLD);
|
|
||||||
}
|
|
||||||
} else if (index == 1) {
|
|
||||||
// Page up/Page down
|
|
||||||
if (clockwise) {
|
|
||||||
tap_code(KC_VOLU);
|
|
||||||
} else {
|
|
||||||
tap_code(KC_VOLD);
|
|
||||||
}
|
|
||||||
} else if (index == 2) {
|
|
||||||
// Page up/Page down
|
|
||||||
if (clockwise) {
|
|
||||||
tap_code(KC_PGDN);
|
|
||||||
} else {
|
|
||||||
tap_code(KC_PGUP);
|
|
||||||
}
|
|
||||||
} else if (index == 3) {
|
|
||||||
// Page up/Page down
|
|
||||||
if (clockwise) {
|
|
||||||
tap_code(KC_PGDN);
|
|
||||||
} else {
|
|
||||||
tap_code(KC_PGUP);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
#endif
|
|
Loading…
Add table
Add a link
Reference in a new issue