summaryrefslogtreecommitdiff
path: root/ferris/keymap.c
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2023-07-01 22:20:39 +0200
committerChristoph Cullmann <cullmann@kde.org>2023-07-01 22:20:39 +0200
commitdb784cc076426dfb9e5be2281862f8d243c7753a (patch)
tree842769aaa23bd033ec1e5079b8cf91a48851c65b /ferris/keymap.c
parentb2e5a3f645f6b70560254eed69bea22d8c3cae63 (diff)
Revert "try get_hold_on_other_key_press instead of achordion"
This reverts commit b2e5a3f645f6b70560254eed69bea22d8c3cae63. hold on other key press is suboptimal, too
Diffstat (limited to 'ferris/keymap.c')
-rw-r--r--ferris/keymap.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/ferris/keymap.c b/ferris/keymap.c
index cfa33cd..2722f29 100644
--- a/ferris/keymap.c
+++ b/ferris/keymap.c
@@ -76,16 +76,17 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
-// Configure hold on other key press per key
-bool get_hold_on_other_key_press(uint16_t keycode, keyrecord_t *record) {
- switch (keycode) {
- // thumb buttons should be reactive
- case MO(_SYM):
- case LT(_NUM, KC_SPC):
- case LT(_NAV, KC_BSPC):
- case MO(_FN):
- return true;
- default:
- return false;
- }
+// better handling of home row modifiers
+// see https://getreuer.info/posts/keyboards/achordion/index.html
+
+#include "achordion.h"
+#include "achordion.c"
+
+bool process_record_user(uint16_t keycode, keyrecord_t* record) {
+ if (!process_achordion(keycode, record)) { return false; }
+ return true;
+}
+
+void matrix_scan_user(void) {
+ achordion_task();
}