Update keymap.c
Co-Authored-By: Joel Challis <git@zvecr.com>
This commit is contained in:
parent
22a10cc8a3
commit
1df8bb3cdb
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
void encoder_update_user(uint8_t index, bool clockwise) {
|
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
if (index == 0) { /* First encoder */
|
if (index == 0) { /* First encoder */
|
||||||
switch(biton32(layer_state)){
|
switch(get_highest_layer(layer_state)){
|
||||||
case 0: //Layer 0
|
case 0: //Layer 0
|
||||||
if (!clockwise) { // Remove ! to reverse direction
|
if (!clockwise) { // Remove ! to reverse direction
|
||||||
tap_code(KC_VOLU);
|
tap_code(KC_VOLU);
|
||||||
|
@ -44,4 +44,4 @@ void encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue