Skip to content

Commit

Permalink
Tighten up combo timings, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
halcyonCorsair committed May 21, 2022
1 parent 4e0c0e9 commit ef468c3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 2 additions & 0 deletions keyboards/splitkb/kyria/keymaps/halcyoncorsair/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@

// Combos
#define COMBO_ONLY_FROM_LAYER 0
#define COMBO_TERM 30
#define COMBO_TERM_PER_COMBO

// Rotary encoders
#define ENCODER_DIRECTION_FLIP
Expand Down
3 changes: 2 additions & 1 deletion keyboards/splitkb/kyria/keymaps/halcyoncorsair/keymap.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2019 Thomas Baart <thomas@splitkb.com>
/* Copyright 2021 Elliot Pahl <elliot.pahl@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -191,6 +191,7 @@ uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case HOME_A:
return TAPPING_TERM + 40;
case HOME_I:
case HOME_R:
case HOME_O:
case QHOME_S:
Expand Down
20 changes: 20 additions & 0 deletions users/halcyoncorsair/combos.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,23 @@ void process_combo_event(uint16_t combo_index, bool pressed) {
#include COMBOS_DEF
}
}

uint16_t get_combo_term(uint16_t index, combo_t *combo) {
switch (combo->keycode) {
case PASTE:
case KC_LBRC:
case KC_RBRC:
case KC_SLSH:
return COMBO_TERM - 10;
break;

case KC_QUES:
case KC_EXLM:
return COMBO_TERM + 10;
break;

default:
return COMBO_TERM;
break;
}
}

0 comments on commit ef468c3

Please sign in to comment.