Commit Graph
42 Commits
Author SHA1 Message Date
xs5871 a62d39a252 make TapDance a module (#281)
* extract tapdance logic into a module

* clean out old tapdance code

* canonicalize key variable names

* split _process_tap_dance into td_pressed and td_released

* implement consistent argument order

* update documentation

* implement Module.process_key for key interception and modification

* fix tapdance realesing instead of pressing

* fix: default parameters in key handler

* cleanup holdtap

* add error handling to modules process_key

* fix: key released too late

Tapped keys didn't release on a "key released" event, but waited for a
timeout. Resulted in, for example, modifiers applying to keys after the
modifier was released.

* fix lint/formatting

* fix tap_time reference in modtap + minimal documentation

* fix lint
2022-01-18 05:21:05 +00:00
xs5871 a8b2bf75ad fix unicode sequence 2021-12-03 15:28:15 -08:00
Josh Klar 8199854b5e Merge pull request #232 from KMKfw/topic-supervisor-ticks
Convert to supervisor ticks
2021-09-20 23:28:12 +00:00
Kyle Brown a894d8d140 fix sleep 2021-09-17 10:55:29 -07:00
Kyle Brown 0e528435a3 resolved issues 2021-09-17 08:40:20 -07:00
Christian Tu f36a18513b remember pressed keys and release the same keys when the physical switch is opened, even if the layer has changed between key down and key up and a different key is now active for that matrix position 2021-09-17 16:16:59 +02:00
Kyle Brown 584eee64c6 Convert to supervisor ticks 2021-09-14 07:56:38 -07:00
Jasper Chan 88e3fe45d4 Fix send_string (#206) 2021-09-13 19:54:08 -07:00
Kyle Brown e72d2b8c34 feat(extensions): most of the extensions implementation, by kdb424 2021-06-20 13:55:16 -07:00
Josh Klar 9821f7bcc3 Initial attempt to merge internal_state with kmk_keyboard. Seems to work on Plank so far 2021-06-20 13:53:39 -07:00
Dimitris Zervas a6d36d57a7 Add multimple connection support 2020-10-01 23:02:05 +03:00
Dimitris Zervas 2cf64d8ce7 [ble] Add support to clear all current bondings 2020-09-29 19:35:49 -07:00
Josh Klar 38e8102532 Remove kmk.util by moving reboot/bootloader to their only use location 2019-07-24 23:45:50 -07:00
Josh Klar 02401e2ec0 Move kmk.util.get_wide_ordinal to kmk.handlers.sequences 2019-07-24 23:44:26 -07:00
Josh Klar aaeaa74a0c Run black against source tree 2019-07-24 23:03:13 -07:00
Josh Klar 5c0c13e8d0 Prepare for Black autoformatting: dependencies, string staging, single-quote string override 2019-07-24 23:03:13 -07:00
Josh Klar a51d11f6e6 A wild W504 linter error appeared! Fix those. 2019-07-24 21:25:10 -07:00
Josh Klar d34e8ce9d2 Re-add LED support
This reverts commit 5b069a0104.
2019-07-17 16:05:40 -07:00
Josh Klar 2947f81489 Remove pointless reversed_active_layers/active_layers difference 2019-07-12 15:31:27 -07:00
Josh Klar 1fe80fec92 Clean up and standardize print() debug stuff 2019-07-12 15:16:33 -07:00
Josh Klar 5b069a0104 Revert "Monocolor LED backlight added" 2019-07-07 15:35:15 -07:00
Kyle Brown 86b8c4ffb0 New animation 2019-06-21 16:49:00 -07:00
Kyle Brown 7ebf8d623f Fix toggle 2019-06-21 16:47:44 -07:00
Kyle Brown f7a1d54752 Added LED support, cleaned up RGB docs 2019-06-21 16:45:04 -07:00
Kyle Brown f65ea1e841 Added 2 more keys, stripped unused cruft, and added more docs. 2019-06-21 16:44:03 -07:00
Kyle Brown ad3430eeb6 Needs docs, but code is ready for review probably 2019-06-21 16:38:41 -07:00
Kyle Brown 5334e7e0be Massive hsv math fix and configs can be passed now for most things 2019-06-21 16:38:41 -07:00
Kyle Brown 2ad1fe8a9c Massively improved, still not complete. Much easier to use now 2019-06-21 16:38:41 -07:00
Kyle Brown 31983a0873 Breathing now finally working, a key to enable it, not sane defaults, and a toggle button 2019-06-21 16:38:39 -07:00
Josh Klar 9dce78370e Merge branch 'master' into topic-backspace-delete 2019-05-10 13:03:52 -07:00
Elvis Pfützenreuter b494857f21 Fix bug in TO layer key handling 2019-04-25 22:40:29 -03:00
Kyle Brown 7e06b143e1 Merge branch 'master' into topic-backspace-delete 2019-03-12 00:25:05 -07:00
Kyle Brown 298f9489c2 Duh, chaining.... 2019-03-12 00:24:48 -07:00
Kyle Brown e792524b63 Added mod tap with docs 2019-03-12 00:24:48 -07:00
Kyle Brown fc8ddba6cb Adds delete/backspace key. Resolves #93 2019-03-09 15:12:23 -08:00
Josh Klar 4ab673ba80 Resolves #106: Unbreak KC.GESC 2019-01-23 01:52:27 -08:00
Josh Klar 0878538f42 Resolve issues with leader mode, allow single-key targets (HID or internal) 2018-12-29 16:52:06 -08:00
Josh Klar 413e8b8806 Rename keycodes to keys, simpler and easier to deal with 2018-12-29 15:29:11 -08:00
Josh Klar e5c8f5587d Merge unicode handlers with the others. Prove arbitrary Macros are now doable in userspace 2018-12-29 07:10:11 -08:00
Josh Klar 8a21b4135d Restore Unicode Macro support 2018-12-29 06:58:08 -08:00
Josh Klar 57239e3163 Everything necessary to get this to boot finally. Planck types! 2018-12-29 06:03:31 -08:00
Josh Klar 39a6465658 Checkpoint alpha: Reflow macros and keycodes into a consistent structure. Most internal state functionality largely untouched (just moved) 2018-12-29 04:44:52 -08:00