diff options
author | Jack Humbert <jack.humb@gmail.com> | 2017-02-13 10:58:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 10:58:50 -0500 |
commit | fd2925efbac0d7963f3d267dd5264f08a0a4e9dc (patch) | |
tree | 906568677ed027a807d5e9c0c1bc1c2ae001f0f6 /tmk_core/common/action.c | |
parent | 21ad0c5bcdf38d3a9bc365ee23d721bfc8af9c56 (diff) | |
parent | 8c93c5d9ab8a0a69d84f707db71f417b66402693 (diff) | |
download | firmware-fd2925efbac0d7963f3d267dd5264f08a0a4e9dc.tar.gz firmware-fd2925efbac0d7963f3d267dd5264f08a0a4e9dc.tar.bz2 firmware-fd2925efbac0d7963f3d267dd5264f08a0a4e9dc.zip |
Merge pull request #1094 from priyadi/faux_clicky
Implement faux-clicky feature
Diffstat (limited to 'tmk_core/common/action.c')
-rw-r--r-- | tmk_core/common/action.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index f03670a7f..94de36918 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c @@ -33,6 +33,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "nodebug.h" #endif +#ifdef FAUXCLICKY_ENABLE +#include <fauxclicky.h> +#endif void action_exec(keyevent_t event) { @@ -41,6 +44,16 @@ void action_exec(keyevent_t event) dprint("EVENT: "); debug_event(event); dprintln(); } +#ifdef FAUXCLICKY_ENABLE + if (IS_PRESSED(event)) { + FAUXCLICKY_ACTION_PRESS; + } + if (IS_RELEASED(event)) { + FAUXCLICKY_ACTION_RELEASE; + } + fauxclicky_check(); +#endif + #ifdef ONEHAND_ENABLE if (!IS_NOEVENT(event)) { process_hand_swap(&event); |