aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/action.c
diff options
context:
space:
mode:
authorPriyadi Iman Nurcahyo <priyadi@priyadi.net>2017-02-13 18:01:57 +0700
committerPriyadi Iman Nurcahyo <priyadi@priyadi.net>2017-02-13 18:01:57 +0700
commit75e57b4bcb4f97fea7ed1b011eea3557a6b3e041 (patch)
tree3a0a6b0bfae3246d28b8b7dec32b0b8fc904ff06 /tmk_core/common/action.c
parent200488bb31c1776cf4745b005bb8e9d696aea26e (diff)
parent8c93c5d9ab8a0a69d84f707db71f417b66402693 (diff)
downloadqmk_firmware-75e57b4bcb4f97fea7ed1b011eea3557a6b3e041.tar.gz
qmk_firmware-75e57b4bcb4f97fea7ed1b011eea3557a6b3e041.zip
Merge branch 'faux_clicky' into promethium
Diffstat (limited to 'tmk_core/common/action.c')
-rw-r--r--tmk_core/common/action.c13
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/>.
33#include "nodebug.h" 33#include "nodebug.h"
34#endif 34#endif
35 35
36#ifdef FAUXCLICKY_ENABLE
37#include <fauxclicky.h>
38#endif
36 39
37void action_exec(keyevent_t event) 40void action_exec(keyevent_t event)
38{ 41{
@@ -41,6 +44,16 @@ void action_exec(keyevent_t event)
41 dprint("EVENT: "); debug_event(event); dprintln(); 44 dprint("EVENT: "); debug_event(event); dprintln();
42 } 45 }
43 46
47#ifdef FAUXCLICKY_ENABLE
48 if (IS_PRESSED(event)) {
49 FAUXCLICKY_ACTION_PRESS;
50 }
51 if (IS_RELEASED(event)) {
52 FAUXCLICKY_ACTION_RELEASE;
53 }
54 fauxclicky_check();
55#endif
56
44#ifdef ONEHAND_ENABLE 57#ifdef ONEHAND_ENABLE
45 if (!IS_NOEVENT(event)) { 58 if (!IS_NOEVENT(event)) {
46 process_hand_swap(&event); 59 process_hand_swap(&event);