mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-07 16:14:17 -04:00
Big cleanup and tune
- increased combo timer to 35 - I removed all the unnecessary defines and associated methods for per keycode customizations like quick tap term, combo press in order, etc
This commit is contained in:
parent
92efb790af
commit
1fa52ae34c
4 changed files with 6 additions and 66 deletions
|
@ -1,15 +1,5 @@
|
|||
#include "combo.h"
|
||||
|
||||
uint16_t get_combo_term(uint16_t index, combo_t *combo) {
|
||||
// or with combo index, i.e. its name from enum.
|
||||
switch (index) {
|
||||
|
||||
default:
|
||||
return COMBO_TERM;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
bool get_combo_must_tap(uint16_t index, combo_t *combo) {
|
||||
|
||||
switch (index) {
|
||||
|
@ -19,7 +9,7 @@ bool get_combo_must_tap(uint16_t index, combo_t *combo) {
|
|||
case MOUSE_BUTTON4:
|
||||
case MOUSE_BUTTON5:
|
||||
case MOUSE_DRGTOG:
|
||||
#endif //MOUSEKEY_ENABLE
|
||||
#endif //MOUSEKEY_ENABLEdf
|
||||
|
||||
case KEY_ESC:
|
||||
case KEY_ENT:
|
||||
|
@ -31,28 +21,6 @@ bool get_combo_must_tap(uint16_t index, combo_t *combo) {
|
|||
}
|
||||
}
|
||||
|
||||
bool get_combo_must_hold(uint16_t index, combo_t *combo) {
|
||||
switch (index) {
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool get_combo_must_press_in_order(uint16_t combo_index, combo_t *combo) {
|
||||
switch (combo_index) {
|
||||
/* List combos here that you want to only activate if their keys
|
||||
* are pressed in the same order as they are defined in the combo's key
|
||||
* array.
|
||||
*
|
||||
* return false means they do not have to be pressed in order
|
||||
* */
|
||||
|
||||
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
|
||||
|
@ -89,6 +57,5 @@ bool combo_should_trigger(uint16_t combo_index, combo_t *combo, uint16_t keycode
|
|||
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue