mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-06 07:34:18 -04:00
- All feature config settings are now in two keycodes for encoder - All key press toggles are now in one keycode - added back the quote bracket tap holds - Cleaned up keymap - formatting - updated other board keymaps for these - removed trace of _CONFIG layer
19 lines
No EOL
564 B
C
19 lines
No EOL
564 B
C
#include "combo.h"
|
|
|
|
bool combo_should_trigger (uint16_t combo_index, combo_t *combo, uint16_t keycode, keyrecord_t *record) {
|
|
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;
|
|
}
|
|
} |