Line 24: |
Line 24: |
| | 0x18 | | | 0x18 |
| | 0x80 | | | 0x80 |
− | | Array of 8 entries, where each entry(see below) is 0x10-bytes. | + | | Array of 8 entries, where each entry (see below) is 0x10-bytes. |
| |} | | |} |
| | | |
Line 42: |
Line 42: |
| | 0x4 | | | 0x4 |
| | 0x4 | | | 0x4 |
− | | ? | + | | PAD state for buttons which were pressed(bitmasks which changed from value 0 to value 1) since the last HID update. |
| |- | | |- |
| | 0x8 | | | 0x8 |
| | 0x4 | | | 0x4 |
− | | ? | + | | PAD state for buttons which were released(bitmasks which changed from value 1 to value 0) since the last HID update. |
| |- | | |- |
| | 0xC | | | 0xC |
| | 0x2 | | | 0x2 |
− | | 16bit value (probably C-Stick) | + | | C-stick X value (center is exactly 0, ranges from -0x9C to 0x9C) |
| |- | | |- |
| | 0xE | | | 0xE |
| | 0x2 | | | 0x2 |
− | | 16bit value (probably C-Stick) | + | | C-stick Y value (center is exactly 0, ranges from -0x9C to 0x9C) |
| |} | | |} |
| + | |
| + | ==PAD State== |
| + | {| class="wikitable" border="1" |
| + | |- |
| + | ! Bit |
| + | ! Description |
| + | |- |
| + | | 14 |
| + | | ZL |
| + | |- |
| + | | 15 |
| + | | ZR |
| + | |- |
| + | | 24 |
| + | | C-stick right |
| + | |- |
| + | | 25 |
| + | | C-stick left |
| + | |- |
| + | | 26 |
| + | | C-stick up |
| + | |- |
| + | | 27 |
| + | | C-stick down |
| + | |} |
| + | |
| + | The ir:rst PAD entries are the same format as HID ones and meant to be ORd with them (they are complementary, there is no overlap in used bits). |