mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-08 16:44:17 -04:00
- removed most combos and all key overrides - implemented custom override for haptic and audio config - went back to older keymap (e.g. backspace and del on most layers) - reintroduced dedicated mouse button on thumb cluster - mouse button 2 is now a combo
22 lines
No EOL
692 B
C
22 lines
No EOL
692 B
C
#include "combo.h"
|
|
|
|
bool combo_should_trigger(uint16_t combo_index, combo_t *combo, uint16_t keycode, keyrecord_t *record) {
|
|
// disable all combos on config layer
|
|
if ( get_highest_layer(layer_state | default_layer_state) == _CONFIG ) return false;
|
|
|
|
switch (combo_index) {
|
|
case MOUSE_BUTTON2:
|
|
if ( get_highest_layer(layer_state | default_layer_state) > FIRST_DEFAULT_LAYER ) {
|
|
return false;
|
|
}
|
|
|
|
case MOUSE_DRGTOG:
|
|
if (( get_highest_layer(layer_state | default_layer_state) != FIRST_DEFAULT_LAYER )
|
|
&& ( get_highest_layer(layer_state | default_layer_state) != _MOUSE_FUNC )) {
|
|
return false;
|
|
}
|
|
|
|
default:
|
|
return true;
|
|
}
|
|
} |