1
0
Fork 0

maxr1998/pulse4k: use layout macros in keymaps (#14808)

This commit is contained in:
James Young 2021-10-13 08:56:48 +00:00 committed by GitHub
parent ec32365944
commit 04cf161aa0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -24,8 +24,8 @@ enum layers {
const uint16_t PROGMEM led_adjust_combo[] = {KC_LEFT, KC_RGHT, COMBO_END}; const uint16_t PROGMEM led_adjust_combo[] = {KC_LEFT, KC_RGHT, COMBO_END};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[DEFAULT] = { [DEFAULT] = LAYOUT(
{ KC_END, KC_UP, KC_MUTE }, KC_END, KC_UP, KC_MUTE,
{ KC_LEFT, KC_DOWN, KC_RGHT } KC_LEFT, KC_DOWN, KC_RGHT
} )
}; };

View file

@ -24,10 +24,10 @@ enum layers {
const uint16_t PROGMEM led_adjust_combo[] = {KC_F22, KC_F24, COMBO_END}; const uint16_t PROGMEM led_adjust_combo[] = {KC_F22, KC_F24, COMBO_END};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[DEFAULT] = { [DEFAULT] = LAYOUT(
{ KC_F20, KC_F21, KC_MUTE }, KC_F20, KC_F21, KC_MUTE,
{ KC_F22, KC_F23, KC_F24 } KC_F22, KC_F23, KC_F24
} )
}; };
void encoder_one_update(bool clockwise) { void encoder_one_update(bool clockwise) {