From 8a894933e0e4f6d000fcf07ecb9b17521483afea Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sat, 25 Mar 2023 10:59:34 +0100 Subject: update config to current qmk --- ferris/keymap.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'ferris/keymap.c') diff --git a/ferris/keymap.c b/ferris/keymap.c index 9c0c604..50f8fd1 100644 --- a/ferris/keymap.c +++ b/ferris/keymap.c @@ -36,32 +36,6 @@ void matrix_scan_user(void) achordion_task(); } -static bool planck_bottom_row(keypos_t pos) -{ - return pos.row % (MATRIX_ROWS / 2) == 3; -} - -// works only for rows 0-2 or 4-6 -static bool planck_on_left_hand(keypos_t pos) -{ - // planck is like a split keyboard, beside for the last row - return pos.row < MATRIX_ROWS / 2; -} - -bool achordion_chord(uint16_t tap_hold_keycode, - keyrecord_t* tap_hold_record, - uint16_t other_keycode, - keyrecord_t* other_record) -{ - // last row is special for the planck, just allow there everything - if (planck_bottom_row(tap_hold_record->event.key) || planck_bottom_row(other_record->event.key)) { - return true; - } - - // now both keys are in rows 0-2 or 4-6, there we can check the left hand with the simple helper - return planck_on_left_hand(tap_hold_record->event.key) != planck_on_left_hand(other_record->event.key); -} - // layout helper macro, we just use 34 keys #define LAYOUT_cullmann(\ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09,\ -- cgit v1.2.3