#include #include "keyboard.h" #include "action.h" #include "debug.h" #include "layer_switch.h" uint16_t layer_switch_stat = 0; uint16_t layer_switch_stat_get(void) { return layer_switch_stat; } void layer_switch_stat_set(uint16_t stat) { layer_switch_stat = stat; layer_switch_debug(); } void layer_switch_clear(void) { layer_switch_stat = 0; layer_switch_debug(); } void layer_switch_on(uint8_t layer) { layer_switch_stat |= (1<= 0; i--) { if (layer_switch_stat & (1<