1
0
Fork 0
forked from forks/qmk_firmware

Update keymap.c

removed encoder support
This commit is contained in:
pabile 2020-07-07 21:33:34 +08:00 committed by GitHub
parent 7699232b74
commit 77b46c84c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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*/
}
}
}