Conversion to Encoder Map

This commit is contained in:
Blake Drayson 2024-08-31 14:15:49 +01:00
parent aa3029b4df
commit 0eaace20c1
2 changed files with 7 additions and 8 deletions

View File

@ -84,11 +84,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
*/
};
bool encoder_update_user(uint8_t index, bool clockwise) {
if (clockwise) {
tap_code(KC_VOLD);
} else {
tap_code(KC_VOLU);
}
return false;
}
#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[_BASE] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) },
[_CODE] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) },
};
#endif

View File

@ -1 +1,2 @@
ENCODER_MAP_ENABLE = yes
SRC += oled.c