This commit is contained in:
♥ Minnie ♥ 2024-03-19 17:59:27 +08:00
parent c03a1cfd25
commit 29b280150b

View file

@ -161,11 +161,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
), ),
}; };
// Layer change
layer_state_t layer_state_set_user(layer_state_t state) {
// Activate MOD layer
state = update_tri_layer_state(state, NAV, NUM, MOD);
return state;
// Bilateral combination exceptions // Bilateral combination exceptions
bool achordion_chord(uint16_t tap_hold_keycode, keyrecord_t* tap_hold_record, uint16_t other_keycode, keyrecord_t* other_record) { bool achordion_chord(uint16_t tap_hold_keycode, keyrecord_t* tap_hold_record, uint16_t other_keycode, keyrecord_t* other_record) {
switch (tap_hold_keycode) { switch (tap_hold_keycode) {
@ -243,6 +238,13 @@ void matrix_scan_user(void) {
achordion_task(); achordion_task();
} }
// Layer change
layer_state_t layer_state_set_user(layer_state_t state) {
// Activate MOD layer
state = update_tri_layer_state(state, NAV, NUM, MOD);
return state;
}
#ifdef OLED_ENABLE #ifdef OLED_ENABLE
// Declare screen rotation for each half // Declare screen rotation for each half
oled_rotation_t oled_init_user(oled_rotation_t rotation) { oled_rotation_t oled_init_user(oled_rotation_t rotation) {