diff options
author | Christoph Cullmann <cullmann@kde.org> | 2023-03-25 10:59:34 +0100 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2023-03-25 10:59:34 +0100 |
commit | 8a894933e0e4f6d000fcf07ecb9b17521483afea (patch) | |
tree | 29b5b72ebfbe29cbe20da19cc94af1e3d30b4e05 /ferris/keymap.c | |
parent | af5e252f24804b7de1064a9fade32094c47cc279 (diff) |
update config to current qmk
Diffstat (limited to 'ferris/keymap.c')
-rw-r--r-- | ferris/keymap.c | 26 |
1 files changed, 0 insertions, 26 deletions
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,\ |