summaryrefslogtreecommitdiff
path: root/common/action.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-04-05 03:27:10 +0900
committertmk <nobody@nowhere>2013-04-05 03:27:10 +0900
commitfbea2a3aae5d66ecb00fcd3473f76337d34688fa (patch)
tree9d74ea9c5062a53775ebe1d01b3067d89413e084 /common/action.h
parent25d8de6e7b9b1570e87ea48b17f180ed9326304f (diff)
Fix keymap of hhkb for new actions
Diffstat (limited to 'common/action.h')
-rw-r--r--common/action.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/common/action.h b/common/action.h
index 5f659337f9..98c4ef81a6 100644
--- a/common/action.h
+++ b/common/action.h
@@ -25,18 +25,20 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "action_macro.h"
+/* tapping count and state */
+typedef struct {
+ bool interrupted :1;
+ bool reserved2 :1;
+ bool reserved1 :1;
+ bool reserved0 :1;
+ uint8_t count :4;
+} tap_t;
+
/* Key event container for recording */
typedef struct {
keyevent_t event;
#ifndef NO_ACTION_TAPPING
- /* tapping count and state */
- struct {
- bool interrupted :1;
- bool reserved2 :1;
- bool reserved1 :1;
- bool reserved0 :1;
- uint8_t count :4;
- } tap;
+ tap_t tap;
#endif
} keyrecord_t;