forked from forks/qmk_firmware
Update keymap.c
removed encoder support
This commit is contained in:
parent
7699232b74
commit
77b46c84c6
|
|
@ -8,25 +8,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
KC_P1, KC_P2, KC_P3, KC_EQL,
|
||||
KC_P0, KC_P0, KC_PDOT, KC_PENT)
|
||||
};
|
||||
|
||||
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||
if (index == 0) { /* First encoder */
|
||||
if (clockwise) {
|
||||
tap_code(KC_WH_U); /*mouse wheel up*/
|
||||
} else {
|
||||
tap_code(KC_WH_D); /*mouse wheel down */
|
||||
}
|
||||
} else if (index == 1) { /* Second encoder */
|
||||
if (clockwise) {
|
||||
tap_code(KC_MS_U); /*mouse up*/
|
||||
} else {
|
||||
tap_code(KC_MS_D); /*mouse down*/
|
||||
}
|
||||
} else if (index == 2) { /* Second encoder */
|
||||
if (clockwise) {
|
||||
tap_code(KC_MS_L); /*mouse left*/
|
||||
} else {
|
||||
tap_code(KC_MS_R); /*mouse right*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue