Implement the standalone USB protocol probe and Bluetooth-backed right Joy-Con bridge with its own persistent virtual pairing identity. Preserve complete ordered native reports, including opaque motion data, and match the console feature set. Relay built-in vibration cues only after genuine source acknowledgement and expose safe BOOTSEL pairing control. Include native capture diagnostics and focused protocol, packet-lifecycle, and cue regressions. Native mouse operation confirmed on Switch with bridge 0.24; private captures and firmware backups remain outside the commit.
9 lines
294 B
C
9 lines
294 B
C
#pragma once
|
|
#include <stdint.h>
|
|
|
|
using absolute_time_t = uint64_t;
|
|
absolute_time_t get_absolute_time();
|
|
uint32_t to_ms_since_boot(absolute_time_t value);
|
|
absolute_time_t make_timeout_time_ms(uint32_t timeout);
|
|
bool time_reached(absolute_time_t deadline);
|
|
void sleep_ms(uint32_t milliseconds);
|