]> git.donarmstrong.com Git - qmk_firmware.git/commit
Add One Shot Key callbacks (#4697)
authorThomas Baart <mail@thomasbaart.nl>
Tue, 5 Feb 2019 18:19:56 +0000 (19:19 +0100)
committerDrashna Jaelre <drashna@live.com>
Tue, 5 Feb 2019 18:19:56 +0000 (10:19 -0800)
commit47051f506fd4888bbb55fa7981cb7b24827f3d1b
tree88628409bc9d63bfb0999be7f5b328ff5421b365
parent7df9e584fa1ee31ab5bb35b1c7fa09845cba0a80
Add One Shot Key callbacks (#4697)

* Added callbacks to one shot modifier changes

* Altered signature of callback functions

* Reordered the callback methods, shortened brief documentation

* Added One Shot Modifier callback documentation

* First attempt at unit tests

* Revert "First attempt at unit tests"

This reverts commit 5ec21a782202c0d74cf21cb852bd319f0c8b4842.

* Simplified oneshot function implementations

* Made clear_oneshot_locked_mods to be conform action_util.h, adhering to the (void) signature

* Made used datatypes for oneshot mods consistently unsigned integers

* Corrected callback to call clear callback when clear_oneshot_locked_mods is invoked

* Simplified oneshot equals statements

* Corrected return type and signature of get and set oneshot locked mods

* Consolidated one shot callbacks, added initial layer callback version

* Fixed non-updating one shot layer variable after timeout or other clear, added code comments

* Added better one shot key docs
docs/feature_advanced_keycodes.md
tmk_core/common/action_util.c
tmk_core/common/action_util.h