summaryrefslogtreecommitdiff
path: root/common/action.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-02-04 22:53:45 +0900
committertmk <nobody@nowhere>2013-02-04 22:53:45 +0900
commitaad91a30a34d61739e1261bb82a1cb1ace581afa (patch)
treea8d265120be758e1ac496ad46e1b95a58c8481c7 /common/action.h
parent1d7962ba8a20323dc13cc913381608e117afaeb4 (diff)
Add macro feature.
Diffstat (limited to 'common/action.h')
-rw-r--r--common/action.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/common/action.h b/common/action.h
index b657aa540b..b1e958a266 100644
--- a/common/action.h
+++ b/common/action.h
@@ -49,27 +49,27 @@ typedef union {
uint16_t code;
struct action_kind {
uint16_t param :12;
- uint16_t id :4;
+ uint8_t id :4;
} kind;
struct action_key {
- uint16_t code :8;
- uint16_t mods :4;
- uint16_t kind :4;
+ uint8_t code :8;
+ uint8_t mods :4;
+ uint8_t kind :4;
} key;
struct action_layer {
- uint16_t code :8;
- uint16_t val :4;
- uint16_t kind :4;
+ uint8_t code :8;
+ uint8_t val :4;
+ uint8_t kind :4;
} layer;
struct action_usage {
uint16_t code :10;
- uint16_t page :2;
- uint16_t kind :4;
+ uint8_t page :2;
+ uint8_t kind :4;
} usage;
struct action_command {
- uint16_t id :8;
- uint16_t opt :4;
- uint16_t kind :4;
+ uint8_t id :8;
+ uint8_t opt :4;
+ uint8_t kind :4;
} command;
struct action_function {
uint8_t id :8;