feat(native-usb): route gameplay rumble and attach only after startup readiness
This commit is contained in:
parent
9f8678af96
commit
ae1ca51b9a
18 changed files with 1158 additions and 43 deletions
|
|
@ -50,6 +50,18 @@ typedef struct {
|
|||
uint32_t report_counter;
|
||||
} probe_protocol_state;
|
||||
|
||||
typedef struct {
|
||||
uint8_t count;
|
||||
uint8_t magnitude[3];
|
||||
} probe_rumble_frame;
|
||||
|
||||
// Stateless Output 01 compatibility rumble: report_id 0 includes the leading
|
||||
// wire ID (17..64 bytes); report_id 1 omits it (16..63 bytes).
|
||||
// Count zero means HOLD/no update, not stop or watchdog refresh. A nonempty
|
||||
// zero-amplitude sample is stop. Malformed input leaves output unchanged.
|
||||
bool probe_protocol_decode_rumble(uint8_t report_id, const uint8_t* data,
|
||||
size_t length, probe_rumble_frame* output);
|
||||
|
||||
void probe_protocol_reset(probe_protocol_state* state, bool is_left);
|
||||
// Blob: own address[6], count[1], zero-padded host addresses[42][6], AES key[16].
|
||||
// Rejects other identities, invalid counts/padding/lengths without mutation.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue