Trying Callum after my Swoop got stuck in game mode

- reshuffling everything to somewhat match his keymap
- removed a bunch of combos
This commit is contained in:
Victor 2024-05-05 20:27:25 -05:00
parent e6fae5e3b1
commit 39ca5f2f73
Failed to generate hash of commit
11 changed files with 48 additions and 85 deletions

View file

@ -5,15 +5,19 @@ void single_tap(uint16_t key, uint16_t altkey, bool isHold) {
}
void double_tap(uint16_t key, uint16_t altkey, uint32_t ms) {
tap_code16(key);
bool isShift = ( (get_mods() & MOD_BIT(KC_LSFT)) || (get_oneshot_mods() & MOD_BIT(KC_LSFT)) );
isShift ? tap_code16(LSFT(key)) : tap_code16(key);
wait_ms(ms);
tap_code16(altkey);
isShift ? tap_code16(LSFT(altkey)) : tap_code16(altkey);
}
void insert_brackets(uint16_t left, uint16_t right, uint32_t ms) {
tap_code16(left);
bool isShift = ( (get_mods() & MOD_BIT(KC_LSFT)) || (get_oneshot_mods() & MOD_BIT(KC_LSFT)) );
isShift ? tap_code16(LSFT(left)) : tap_code16(left);
wait_ms(ms);
tap_code16(right);
isShift ? tap_code16(LSFT(right)) : tap_code16(right);
wait_ms(ms);
tap_code16(KC_LEFT);
}