X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=common%2Faction.h;h=98c4ef81a664c7e3121cf7564e02a364660a06a5;hb=9e39b222d0105b55c84a8301958d69209a3319fb;hp=5f659337f9706fba99b6e9202728fed588b998db;hpb=ebe798f081ce018826dc882a40fc77ec8a0ad023;p=max%2Ftmk_keyboard.git diff --git a/common/action.h b/common/action.h index 5f659337..98c4ef81 100644 --- a/common/action.h +++ b/common/action.h @@ -25,18 +25,20 @@ along with this program. If not, see . #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;