From be26af998ee7cbcfeb5b52a366fbd2e6e0bd1017 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Tue, 30 Jul 2024 18:11:10 +0200 Subject: 42 keys layout atm --- common/config.h | 5 ----- common/keymap.h | 22 +--------------------- 2 files changed, 1 insertion(+), 26 deletions(-) (limited to 'common') diff --git a/common/config.h b/common/config.h index e209be4..84cc6de 100644 --- a/common/config.h +++ b/common/config.h @@ -37,11 +37,6 @@ // settings for home row modifiers // details see https://precondition.github.io/home-row-mods -// the default is 200 -#define TAPPING_TERM 170 -#define TAPPING_TERM_SLOW 220 -#define TAPPING_TERM_PER_KEY - // detect typing streaks #define ACHORDION_STREAK diff --git a/common/keymap.h b/common/keymap.h index b283a8a..b44cdf1 100644 --- a/common/keymap.h +++ b/common/keymap.h @@ -65,22 +65,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { #include "achordion.h" -uint16_t get_tapping_term(uint16_t keycode, keyrecord_t* record) { - switch (keycode) { - // Increase the tapping term a little for alt/algr/win. - case RALT_T(KC_C): - case LALT_T(KC_R): - case LGUI_T(KC_D): - case RGUI_T(KC_H): - case LALT_T(KC_I): - case RALT_T(KC_A): - return TAPPING_TERM_SLOW; - - default: - return TAPPING_TERM; - } -} - bool process_record_user(uint16_t keycode, keyrecord_t* record) { if (!process_achordion(keycode, record)) { return false; } return true; @@ -94,11 +78,7 @@ bool achordion_chord(uint16_t tap_hold_keycode, keyrecord_t* tap_hold_record, uint16_t other_keycode, keyrecord_t* other_record) { - // allow that bottom row has no delay - if (tap_hold_record->event.key.row % (MATRIX_ROWS / 2) >= 3) { return true; } - if (other_record->event.key.row % (MATRIX_ROWS / 2) >= 3) { return true; } - - // Otherwise, follow the opposite hands rule. + // follow the opposite hands rule. return on_left_hand(tap_hold_record->event.key) != on_left_hand(other_record->event.key); } -- cgit v1.2.3