summaryrefslogtreecommitdiffstats
path: root/tmk_core/common/action.c
Commit message (Collapse)AuthorAgeFilesLines
* Add mousekey_send to (un)register_codeDrashna Jaelre2018-10-041-0/+2
|
* Make `PREVENT_STUCK_MODIFIERS` the default (#3107)Joe Wasson2018-09-171-1/+1
| | | | | | | | | | * Remove chording as it is not documented, not used, and needs work. * Make Leader Key an optional feature. * Switch from `PREVENT_STUCK_MODIFIERS` to `STRICT_LAYER_RELEASE` * Remove `#define PREVENT_STUCK_MODIFIERS` from keymaps.
* fix mousekey callJack Humbert2018-09-031-6/+11
|
* Enable mouse keys in register_code and unregister_codeSteven Liu2018-09-031-0/+6
| | | | This allows for macros to be assigned to press two mouse directions at same time, which allows for one key diagonals.
* Allow one-shot modifiers to be chainedGergely Nagy2018-05-141-3/+3
| | | | | | | | | | | | | | | | | | | Many a times one would want to use multiple modifiers with the same key, preferably without having to hold anything, like `Ctrl+Shift+C` or `Ctrl+Shift+V` to copy/paste in GNOME Terminal. To make this possible, we need to be able to chain one-shot modifiers, so that we can have multiple of them active at the same time. The easiest way to accomplish this is that whenever we activate a one-shot modifier, we apply it on top of the existing set, instead of re-setting the state. When deactivating, either due to an interrupt, or due to a timeout, we deactivate all oneshots anyway, so the clearing part is covered. When we turn the one-shot modifier into a toggle, that will also clear all one-shot modifiers first, so we covered that case too. Fixes #2796, #1580, and #856. Signed-off-by: Gergely Nagy <qmk@gergo.csillger.hu>
* Generate API docs from source code comments (#2491)skullydazed2018-03-221-5/+58
| | | | | | | | | | | | | | | | | | * Generate api docs from source code * Add a bunch of doxygen comments * more doxygen comments * Add the in-progress api docs * script to generate docs from travis * Add doc generation to the travis job * make travis_docs.sh commit the work it does * make sure the docs script exits cleanly
* Fix swap-hands tapping.Joe Wasson2018-03-161-4/+40
| | | | This is an inelegant hack for #2522 but makes things work. Basically we give `action.c` a chance to handle the hold event early so that we can swap the keyboard for later keys. Later, to allow the hold to happen again quickly we nuke the key record so that tapping is reset. I tried to find a cleaner way, honestly.
* Rename ONEHAND_ENABLE to SWAP_HANDS_ENABLE for consistencyJoe Wasson2018-03-161-3/+3
|
* backlight breathing overhaul (#2187)Balz Guenat2018-01-011-2/+5
| | | | | | | | | | | | | | | | | | | | * add breathing to bananasplit * backlight breathing overhaul * fix the backlight_tick thing. * fix for vision_division backlight * fix a few keymaps and probably break breathing for some weirdly set-up boards. * remove BL_x keycodes because they made unreasonable assumptions * some fixes for BL keycodes * integer cie lightness scaling * use cie lightness for non-breathing backlight and make breathing able to reach true max brightness
* RETRO_TAPPING (#1922)tsankuanglee2017-10-311-3/+36
| | | | | | | | | | | | * add RETRO_TAP: tap anyway, even after TAP_TERM, if no interruption * consistent variable name * add option doc * change name for consistency * make RETRO_TAPPING default to off
* #1792 added in waits from tmk for locking switchesJoe Martin2017-10-101-0/+3
| | | | fixes #1792
* Remove noisy debug lineCarlos Quiroz2017-06-181-1/+0
|
* Deactivate oneshot mods once timedoutCarlos Quiroz2017-06-181-0/+3
|
* Re-enable mouse buttonsJack Humbert2017-05-291-4/+6
|
* - Added integration of IBM Trackpointdbroqua2017-05-261-4/+30
|
* Workaround for the macOS caps lock delay (#1308)jerryen2017-05-191-0/+4
| | | | | | | | | | * Add 80ms delay for KC_CAPS when used as a tap key Workaround for the macOS caps lock delay * Revert "Increase TAPPING_TERM for the Clueboard" This reverts commit a74e69e9fa889113ee31fbc8dc7e6848fdb07576.
* Call led_set for layer action events to update LEDs on layer changesNephiel2017-05-101-0/+15
|
* Fix warnings when ACTION_ONESHOT is disabledFred Sundvik2017-04-131-1/+1
|
* Implement faux-clicky featurePriyadi Iman Nurcahyo2017-02-131-0/+13
|
* moved oneshot cancellation code outside of process_record.SjB2017-01-291-8/+8
| | | | | | | The oneshot cancellation code do not depend on the action_tapping_process and since process_record get called via the action_tapping_process logic moved the oneshot cancellation code into the action_exec function just before the action_tapping_process call
* oneshot timeout would only timeout after an event.SjB2017-01-151-7/+7
| | | | | | | | | | | After setting a ONESHOT_TIMEOUT value, the oneshot layer state would not expire without an event being triggered (key pressed). The reason was that in the process_record function we would return priort to execute the process_action function if it detected a NOEVENT cycle. The process_action contained the codes to timeout the oneshot layer state. The codes to clear the oneshot layer state have been move just in front of where we check for the NOEVENT cycle in the process_record function.
* Fix issue #772 Meh and Hyper not workingDidier Loiseau2016-09-231-3/+4
|
* Improve one-hand support by adding more actions and tap keys.Joe Wasson2016-08-201-4/+53
|
* Add one-hand support.Joe Wasson2016-08-201-0/+33
| | | | This adds an action, `ACTION_SWAP_HANDS`, that swaps the the keys on the keyboard across a keymap-defined hemisphere in order to support one-hand typing without requiring a separate one-handed layer. See updated `doc/keymap.md` for more information.
* splits process_action up to handle records separately (#329)Jack Humbert2016-05-151-21/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | * implements leader key for planck experimental * allows override of leader timeout * adds ability to use the leader key in seq * fixes leader keycode * adds chording prototype * fixes keycode detection * moves music mode to quantum.c * disables chording by default * adds music sequencer functionality * implements audio/music functions in quantum.c * splits up process_action to allow independent processing of actions * merging?
* Leader key implementation (#326)Erez Zukerman2016-05-151-2/+5
| | | | | | | | | | | | | | | | | | | | * implements leader key for planck experimental * allows override of leader timeout * adds ability to use the leader key in seq * fixes leader keycode * adds chording prototype * fixes keycode detection * moves music mode to quantum.c * disables chording by default * updates process_action functions to return bool
* Adds oneshot layer and oneshot tap toggling (#308)Thiago Alves2016-05-051-8/+89
| | | | | | | | | | This commit is mostly a cherry-pick from `ahtn` at https://github.com/tmk/tmk_keyboard/pull/255. These are the changes: * Adds ACTION_LAYER_ONESHOT * Adds ONESHOT_TAP_TOGGLE * Mentions sticky keys in the docs on oneshot.
* stops forcing debug_actionJack Humbert2016-04-281-4/+4
|
* Fixed many compiler warnings related to print being disabledIBNobody2016-04-171-4/+4
|
* Merge pull request #182 from Vifon/modifier-release-fixErez Zukerman2016-04-061-1/+17
|\ | | | | Fix the layer-dependent modifiers handling
| * Refactor the source layer cache encodingWojciech Siewierski2016-04-051-41/+0
| |
| * Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware into ↵Wojciech Siewierski2016-04-031-0/+10
| |\ | | | | | | | | | modifier-release-fix
| * | Cleanup after mergeWojciech Siewierski2016-04-021-7/+13
| | | | | | | | | | | | | | | | | | | | | - remove a superfluous parenthesis - wrap lines longer than 80 characters - add const specifiers where appropriate - remove unnecessary casts
| * | Update action.celtang2016-04-021-1/+1
| | |
| * | Update action.celtang2016-04-021-1/+1
| | |
| * | Update action.celtang2016-04-021-1/+1
| | |
| * | Update action.celtang2016-04-021-1/+1
| | |
| * | Update action.celtang2016-04-021-1/+1
| | |
| * | Update action.celtang2016-04-021-1/+2
| | |
| * | Update action.cEric-L-T2016-04-011-1/+1
| | |
| * | Update action.cEric-L-T2016-04-011-8/+8
| | |
| * | Update action.cEric-L-T2016-04-011-6/+6
| | |
| * | Update action.cEric-L-T2016-04-011-1/+1
| | |
| * | Update action.cEric-L-T2016-04-011-4/+15
| | |
| * | Cut the memory consumption of PREVENT_STUCK_MODIFIERS in halfWojciech Siewierski2016-03-271-3/+3
| | |
| * | Expose the pressed_actions_cache global variableWojciech Siewierski2016-03-151-4/+3
| | |
| * | Always provide an implementation of process_action_nocacheWojciech Siewierski2016-03-151-0/+5
| | |
| * | process_action may be called either with key cache or without itWojciech Siewierski2016-03-131-0/+15
| | | | | | | | | | | | | | | | | | | | | If one wants to temporarily disable the key cache (for example because it interferes with a macro), `disable_action_cache` must be set to `true`. `process_action_nocache` is a simple wrapper doing just that for a single call.
| * | Document the issue of stuck modifiersWojciech Siewierski2016-03-081-1/+1
| | |
| * | Fix the layer-dependent modifiers handlingWojciech Siewierski2016-03-051-1/+21
| | | | | | | | | | | | Closes #181.