pub fn parse_standard_input(data: &[u8]) -> Option<GamepadReport>Expand description
Parse a standard GIP gamepad input report (message type 0x20).
Expects the full packet including the 4-byte GIP header. Layout (offsets from packet start):
| Offset | Content |
|---|---|
| 0 | Message type (0x20) |
| 1 | Flags |
| 2 | Sequence |
| 3 | Payload length (0x0E = 14) |
| 4 | Buttons 0: menu, view, A, B, X, Y |
| 5 | Buttons 1: dpad, LB, RB, LS, RS |
| 6–7 | Left trigger (u16 LE, 0–1023) |
| 8–9 | Right trigger (u16 LE, 0–1023) |
| 10–11 | Left stick X (i16 LE) |
| 12–13 | Left stick Y (i16 LE) |
| 14–15 | Right stick X (i16 LE) |
| 16–17 | Right stick Y (i16 LE) |