mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-04 22:54:16 -04:00
- Updated Klor config for updated haptic defines - Music mode is now off for good - Added userspace config for haptics and audio - Went back to numpad 0 on the thumbs - Added haptic and audio keys on the config layer - removed all combos except drag scroll - Updated and added overrides for haptics/audio/Mousekeys
46 lines
No EOL
845 B
C
46 lines
No EOL
845 B
C
#include "combo.h"
|
|
|
|
/*
|
|
bool get_combo_must_tap(uint16_t index, combo_t *combo) {
|
|
|
|
switch (index) {
|
|
|
|
// case MOUSE_BUTTON3:
|
|
// case MOUSE_BUTTON4:
|
|
// case MOUSE_BUTTON5:
|
|
// case MOUSE_DRGTOG:
|
|
|
|
|
|
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:
|
|
// case MOUSE_BUTTON2:
|
|
// case MOUSE_BUTTON3:
|
|
// case MOUSE_BUTTON4:
|
|
// case MOUSE_BUTTON5:
|
|
|
|
case MOUSE_DRGTOG:
|
|
if ( get_highest_layer(layer_state | default_layer_state) > _DEFAULT_LAYER_1 ) return false;
|
|
|
|
default:
|
|
return true;
|
|
}
|
|
|
|
} |