mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-06-21 04:47:50 -04:00
Combined function and config
- removed config layer - was able to spread everything out to the function layer - cleaned up combo and oled code because of this
This commit is contained in:
parent
fee58201e5
commit
5fc856d0ea
11 changed files with 19 additions and 50 deletions
|
@ -4,7 +4,6 @@ uint16_t get_combo_term(uint16_t index, combo_t *combo) {
|
|||
// or with combo index, i.e. its name from enum.
|
||||
switch (index) {
|
||||
case LYR_FUNCTION:
|
||||
case LYR_CONFIG:
|
||||
return COMBO_TERM + 100;
|
||||
|
||||
default:
|
||||
|
@ -14,7 +13,6 @@ uint16_t get_combo_term(uint16_t index, combo_t *combo) {
|
|||
|
||||
bool get_combo_must_hold(uint16_t index, combo_t *combo) {
|
||||
switch (index) {
|
||||
case LYR_CONFIG:
|
||||
case LYR_FUNCTION:
|
||||
return true;
|
||||
|
||||
|
@ -37,7 +35,6 @@ bool combo_should_trigger (uint16_t combo_index, combo_t *combo, uint16_t keycod
|
|||
}
|
||||
|
||||
case LYR_FUNCTION:
|
||||
case LYR_CONFIG:
|
||||
if ( get_highest_layer(layer_state | default_layer_state) > FIRST_DEFAULT_LAYER ) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue