diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-01-24 01:39:00 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-01-24 01:39:00 -0500 |
commit | f8a5eaa3fab683f630390c7ca553810db64d15d6 (patch) | |
tree | e6456b65ff9a082709d999330ee639db3e9ef46f /tmk_core/common/action_code.h | |
parent | fd72a46c139c0450299e6e4ebbf4ffba531c9e2d (diff) |
debugging
Diffstat (limited to 'tmk_core/common/action_code.h')
-rw-r--r-- | tmk_core/common/action_code.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tmk_core/common/action_code.h b/tmk_core/common/action_code.h index 4fe9c1d581..94f215a41b 100644 --- a/tmk_core/common/action_code.h +++ b/tmk_core/common/action_code.h @@ -134,15 +134,17 @@ enum action_kind_id { * 0x12 0x34 0x34 0x12 */ typedef union { - uint16_t code; + uint32_t code; struct action_kind { uint16_t param :12; uint8_t id :4; + uint16_t other :16; } kind; struct action_key { uint8_t code :8; uint8_t mods :4; uint8_t kind :4; + uint16_t other :16; } key; struct action_layer_bitop { uint8_t bits :4; @@ -151,32 +153,42 @@ typedef union { uint8_t on :2; uint8_t op :2; uint8_t kind :4; + uint16_t other :16; } layer_bitop; struct action_layer_tap { uint8_t code :8; uint8_t val :5; uint8_t kind :3; + uint16_t other :16; } layer_tap; struct action_usage { uint16_t code :10; uint8_t page :2; uint8_t kind :4; + uint16_t other :16; } usage; struct action_backlight { uint8_t level :8; uint8_t opt :4; uint8_t kind :4; + uint16_t other :16; } backlight; struct action_command { uint8_t id :8; uint8_t opt :4; uint8_t kind :4; + uint16_t other :16; } command; struct action_function { uint8_t id :8; uint8_t opt :4; uint8_t kind :4; + uint16_t other :16; } func; + struct action_custom { + uint32_t id :28; + uint8_t kind :4; + } custom; } action_t; |