[Keymap] Drashna keymap fixups (#14140)
This commit is contained in:
@ -172,7 +172,6 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return state;
|
||||
}
|
||||
|
||||
state = layer_state_set_keymap(state);
|
||||
state = update_tri_layer_state(state, _RAISE, _LOWER, _ADJUST);
|
||||
#if defined(RGBLIGHT_ENABLE)
|
||||
state = layer_state_set_rgb_light(state);
|
||||
@ -188,6 +187,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
}
|
||||
}
|
||||
#endif
|
||||
state = layer_state_set_keymap(state);
|
||||
return state;
|
||||
}
|
||||
|
||||
|
@ -76,10 +76,15 @@ enum userspace_layers {
|
||||
#endif
|
||||
|
||||
#define DEFAULT_LAYER_1_HSV HSV_CYAN
|
||||
#define DEFAULT_LAYER_2_HSV HSV_SPRINGGREEN
|
||||
#define DEFAULT_LAYER_2_HSV HSV_CHARTREUSE
|
||||
#define DEFAULT_LAYER_3_HSV HSV_MAGENTA
|
||||
#define DEFAULT_LAYER_4_HSV HSV_GOLDENROD
|
||||
|
||||
#define DEFAULT_LAYER_1_RGB RGB_CYAN
|
||||
#define DEFAULT_LAYER_2_RGB RGB_CHARTREUSE
|
||||
#define DEFAULT_LAYER_3_RGB RGB_MAGENTA
|
||||
#define DEFAULT_LAYER_4_RGB RGB_GOLDENROD
|
||||
|
||||
bool mod_key_press_timer(uint16_t code, uint16_t mod_code, bool pressed);
|
||||
bool mod_key_press(uint16_t code, uint16_t mod_code, bool pressed, uint16_t this_timer);
|
||||
void matrix_init_keymap(void);
|
||||
|
@ -71,10 +71,6 @@ void keyboard_post_init_transport_sync(void) {
|
||||
|
||||
void user_transport_update(void) {
|
||||
if (is_keyboard_master()) {
|
||||
# ifdef OLED_ENABLE
|
||||
user_state.oled_on = is_oled_on();
|
||||
# endif
|
||||
|
||||
transport_keymap_config = keymap_config.raw;
|
||||
transport_userspace_config = userspace_config.raw;
|
||||
#ifdef AUDIO_ENABLE
|
||||
@ -89,13 +85,6 @@ void user_transport_update(void) {
|
||||
#endif
|
||||
|
||||
} else {
|
||||
# ifdef OLED_ENABLE
|
||||
if (user_state.oled_on) {
|
||||
oled_on();
|
||||
} else {
|
||||
oled_off();
|
||||
}
|
||||
# endif
|
||||
keymap_config.raw = transport_keymap_config;
|
||||
userspace_config.raw = transport_userspace_config;
|
||||
#ifdef UNICODE_ENABLE
|
||||
|
Reference in New Issue
Block a user