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
pcharest2000
5fcd31b97c
Resolve issue 285 in parsing logic, KC.NO was being parsed has an alpha, swapped the control flow treating the special case KC.NO and KC.XXXXX before alphas and nimbers
...
-Fix linting error on last PR
2021-12-06 11:12:55 -08:00
Christian Tu
7586df8de9
fix Key no_release argument
2021-10-01 15:13:45 +02:00
Christian Tu
3ad2a00dc9
initialize event handler lists in Key objects only when needed to reduce memory footprint
2021-09-17 16:14:51 +02:00
Kyle Brown
e77a0af23c
add / to key names
2021-09-12 11:16:53 -07:00
Josh Klar
083e4a701a
fix(keys): fix shifted keys bug, make lazy key defs more readable
2021-07-09 11:21:00 -07:00
Kyle Brown
7310bdd780
add shorthand for KC_NO
2021-07-07 12:53:17 -07:00
Kyle Brown
a77fee7f04
Add shifted keynames to register unshifted versions
2021-07-07 12:53:17 -07:00
Josh Klar
f79e508566
fix(lint): lint all the things; be more flexible in boards dir
2021-06-20 13:59:59 -07:00
Josh Klar
aeee945728
fix(keys): force gc collection in keys setup to reduce memory fragmentation, probably at cost of performance
2021-06-20 13:55:18 -07:00
Gigahawk
6d5b99d78d
Dynamically create core key definitions as required ( #200 )
...
* Dynamically allocate keys as required
* Restore comments
* Run linter
* Move key definitions into a dict
* Revert "Move key definitions into a dict"
This reverts commit 49ac7c2e40
.
2021-06-20 13:55:18 -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
Josh Klar
dc598ad439
Merge pull request #167 from dzervas/ble_multimple_conns
...
BLE Multiple Connections
2020-10-14 22:04:29 -07:00
Kyle Brown
1a4e81a2e5
Remove GC. Not needed on newer Cpy versions
2020-10-13 10:58:18 -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
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
c11984135a
looks like this is not needed, so save some bootup time
2019-07-17 16:05:40 -07:00
Josh Klar
76087749fb
Download more RAM (reword this in a rebase plz)
2019-07-17 16:05:40 -07:00
Josh Klar
d34e8ce9d2
Re-add LED support
...
This reverts commit 5b069a0104
.
2019-07-17 16:05:40 -07:00
Josh Klar
17094a2988
Clean some code up; force GC on every cycle
2019-07-12 16:38:50 -07:00
Josh Klar
5b069a0104
Revert "Monocolor LED backlight added"
2019-07-07 15:35:15 -07:00
Kyle Brown
5532ffdcbf
Ready for merging
2019-06-21 17:28:30 -07:00
Kyle Brown
86b8c4ffb0
New animation
2019-06-21 16:49:00 -07:00
Kyle Brown
54d63037bf
Added board definition for nyquist and add RGB and LED pins for nyquest and iris
2019-06-21 16:46:59 -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
9fbad17ed4
code cleanup to pass lint and some for flake8
2019-06-21 16:42:12 -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
Elvis Pfutzenreuter
dabed0061d
Add KC_APP ("Win menu") key
2019-05-31 00:36:42 -03:00
Josh Klar
9dce78370e
Merge branch 'master' into topic-backspace-delete
2019-05-10 13:03:52 -07:00
Elvis Pfützenreuter
9c4a136989
Use return value of pre-press/pre-release callbacks
...
When the return value evaluates to False, the key press or key
release is ignored. This allows for implementation of elaborate
keyboard behaviors.
2019-04-26 19:50:41 -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
a2cfa92f2f
Missed some obvious things
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
848afb7801
Allow pre/post on_press/on_release handlers to be attached to all keys (example provided)
2019-02-18 15:08:07 -08:00
Josh Klar
413e8b8806
Rename keycodes to keys, simpler and easier to deal with
2018-12-29 15:29:11 -08:00