#include "combo.h" bool get_combo_must_tap(uint16_t index, combo_t *combo) { switch (index) { case KEY_ENT: case KEY_TAB: return true; default: return false; } } 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_BUTTON1: 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; } }