mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-06-28 20:12:12 +00:00
Different tri state function depending on pase layer
This commit is contained in:
parent
33898fc301
commit
ca25df2e4a
@ -165,8 +165,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
};
|
||||
|
||||
uint32_t layer_state_set_user(uint32_t state) {
|
||||
state = update_tri_layer_state(state, _SYM, _NAV, _UTIL);
|
||||
state = update_tri_layer_state(state, _GAMING_EXT, _NAV, _UTIL);
|
||||
switch (biton32(default_layer_state)) {
|
||||
case _COLEMAKDHM:
|
||||
state = update_tri_layer_state(state, _SYM, _NAV, _UTIL);
|
||||
break;
|
||||
case _GAMING:
|
||||
state = update_tri_layer_state(state, _GAMING_EXT, _NAV, _UTIL);
|
||||
break;
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user