aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/action.c14
-rw-r--r--common/action.h2
2 files changed, 8 insertions, 8 deletions
diff --git a/common/action.c b/common/action.c
index f6e50032e..6d5336752 100644
--- a/common/action.c
+++ b/common/action.c
@@ -816,18 +816,18 @@ bool is_tap_key(key_t key)
816 case ACT_LAYER: 816 case ACT_LAYER:
817 case ACT_LAYER_BIT: 817 case ACT_LAYER_BIT:
818 switch (action.layer.code) { 818 switch (action.layer.code) {
819 case 0x00: 819 case LAYER_MOMENTARY:
820 case 0xF1 ... 0xFF: 820 case LAYER_ON_PRESS:
821 case LAYER_ON_RELEASE:
822 case LAYER_DEFAULT:
821 return false; 823 return false;
822 case 0xF0: 824 case LAYER_TAP_TOGGLE:
823 default: 825 default: /* tap key */
824 return true; 826 return true;
825 } 827 }
826 return false; 828 return false;
827 case ACT_FUNCTION: 829 case ACT_FUNCTION:
828 if (action.func.opt & FUNC_TAP) { 830 if (action.func.opt & FUNC_TAP) { return true; }
829 return true;
830 }
831 return false; 831 return false;
832 } 832 }
833 return false; 833 return false;
diff --git a/common/action.h b/common/action.h
index 800554eb8..9b559cb18 100644
--- a/common/action.h
+++ b/common/action.h
@@ -323,7 +323,7 @@ enum usage_pages {
323 323
324/* Function */ 324/* Function */
325enum function_opts { 325enum function_opts {
326 FUNC_TAP = 0x8, 326 FUNC_TAP = 0x8, /* indciates function is tappable */
327}; 327};
328#define ACTION_FUNCTION(id, opt) ACTION(ACT_FUNCTION, (opt)<<8 | id) 328#define ACTION_FUNCTION(id, opt) ACTION(ACT_FUNCTION, (opt)<<8 | id)
329#define ACTION_FUNCTION_TAP(id) ACTION(ACT_FUNCTION, FUNC_TAP<<8 | id) 329#define ACTION_FUNCTION_TAP(id) ACTION(ACT_FUNCTION, FUNC_TAP<<8 | id)