f20de073 |
1 | |
2 | enum tas_pkt_type { |
ebeef6c6 |
3 | PKT_UPD_MODE = 0xe301, // op_mode |
4 | PKT_UPD_BTNS = 0xe302, |
f20de073 |
5 | }; |
6 | |
ebeef6c6 |
7 | struct tp_pkt { |
f20de073 |
8 | uint16_t type; |
ebeef6c6 |
9 | uint16_t pad; |
f20de073 |
10 | union { |
11 | uint8_t data[60]; |
ebeef6c6 |
12 | uint32_t mode; |
f20de073 |
13 | struct { |
ebeef6c6 |
14 | uint32_t changed_players; |
15 | uint32_t bnts[4]; // MXYZ SACB RLDU |
16 | }; |
f20de073 |
17 | }; |
18 | } __attribute__((packed)); |
19560e5f |
19 | |
ebeef6c6 |
20 | enum op_mode { |
21 | OP_MODE_3BTN = 0, |
22 | OP_MODE_6BTN = 1, |
23 | OP_MODE_TEAMPLAYER = 2, |
19560e5f |
24 | }; |