Commit Graph

28 Commits (4ebbb3c297e028c224dbfc38068db82c669e417f)

Author SHA1 Message Date
Gergely Nagy 29f64d7a93 tap-dance: Major rework, to make it more reliable
This reworks how the tap-dance feature works: instead of one global
state, we have a state for each tap-dance key, so we can cancel them
when another tap-dance key is in flight. This fixes #527.

Since we have a state for each key, we can avoid situation where a keyup
would mess with our global state. This fixes #563.

And while here, we also make sure to fire events only once, and this
fixes #574.

There is one breaking change, though: tap-dance debugging support was
removed, because dumping the whole state would increase the firmware
size too much. Any keymap that made use of this, will have to be
updated (but there's no such keymap in the repo).

Also, there's a nice trick used in this rework: we need to iterate
through tap_dance_actions in a few places, to check for timeouts, and so
on. For this, we'd need to know the size of the array. We can't discover
that at compile-time, because tap-dance gets compiled separately. We'd
like to avoid having to terminate the list with a sentinel value,
because that would require updates to all keymaps that use the feature.
So, we keep track of the highest tap-dance code seen so far, and iterate
until that index.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
jacwib 54e37fd2d1 Fix bug 8 years ago
jacwib 6ba27ea318 Remove pointless comments 8 years ago
jacwib e4e13ddc54 Update readme.md 8 years ago
jacwib 26f4a0cf04 Update Makefile 8 years ago
jacwib 62004866b3 Update config.h 8 years ago
jacwib cf91aa416a Update keymap.c 8 years ago
jacwib 1ab78110bd Update readme.md 8 years ago
jacwib 880486bd24 Jack's keymap. 8 years ago
Jack Humbert a087a207f1 Merge pull request #608 from finleye/master
Adds keymap based on Kinesis advantage
8 years ago
Xyverz ca3278cc35 adds Xyverz's keymaps (#615)
* Adding my own keymaps to the following keyboards:

Planck, Preonic, Atreus, Ergodox

* Delete dvorak.png

Not reflective of my layout.

* Delete readme.md

file cleanup, removing file that doesn't apply to my layout.

* Delete old_keymap.c

file cleanup

* Delete README.md

file clean up.

* Delete README.md

file cleanup

* Delete keymap.c

file cleanup

* Changed behavior of _DVORAK layout's KC_RSFT to SFT_T(KC_ENT) for flexibility's sake.
Updated the rest of the keymap to reflect the current (as of 19:37 on 08 Aug 2018) default
layout and default makefile.
8 years ago
Corey Finley 76cd7c5444 Adds keymap based on Kinesis advantage 8 years ago
Jordi Orlando 3b39910cb9 Create 0xdec Preonic keymap
An ergonomically optimized Colemak keymap for the grid-layout Preonic
9 years ago
Jonathan Lucas e6a41e43aa Updated Readme 9 years ago
commandlinedesign c826bcfc39 Did a derp and forgot to set Trans on Arrow layer 9 years ago
commandlinedesign 4480a74a4b Arrow key fn layer shouldnt overwrite Ctrl key. Better Print Screen position 9 years ago
commandlinedesign c1fb82623c Tested, resolved Mouse issue, resolved numpad issue 9 years ago
commandlinedesign fbafb9449e Resolved errors 9 years ago
Jonathan Lucas 9b3708f830 Init Readme
This needs a better description.
9 years ago
Jonathan Lucas 3c7075011b Create Makefile
This is untested, use caution.
9 years ago
Jonathan Lucas b5761df57b Create CMD-Preonic Keymap
This is very Alpha-Mode, and has not been tested or even Made yet.
9 years ago
Robert Dale 9c26498f49 added Midi On/Off; Enter is actually transparent 9 years ago
Robert Dale 47223ebee4 Corrected the ascii layout to match the coded layout 9 years ago
Jack Humbert 94d3159d9d correct break/return order for planck and preonic defaults 9 years ago
Jack Humbert e5d1e4b8ce Preonic keymap update 9 years ago
Jack Humbert 0058c33815 updates preonic default layout 9 years ago
Jack Humbert 13bb6b4b7f Backlight abstraction and other changes (#439)
* redoes matrix pins, abstracts backlight code for B5,6,7

* slimming down keyboard stuff, backlight breathing implemented

* don't call backlight init when no pin

* cleans up user/kb/quantum calls, keyboard files

* fix pvc atomic

* replaces CHANNEL with correct var in breathing

* removes .hexs, updates readmes, updates template

* cleans-up clueboards, readmes to lowercase

* updates readme
9 years ago
Jack Humbert 649b33d778 Renames keyboard folder to keyboards, adds couple of tmk's fixes (#432)
* fixes from tmk's repo

* rename keyboard to keyboards
9 years ago