GCAdapter: Process pad state in read thread and other general cleanups.

This commit is contained in:
Jordan Woyak
2022-10-09 23:28:14 -05:00
parent 79e09c3731
commit 5ed0543430
2 changed files with 186 additions and 134 deletions

View File

@ -17,7 +17,11 @@ void Shutdown();
void SetAdapterCallback(std::function<void(void)> func);
void StartScanThread();
void StopScanThread();
// Buttons have PAD_GET_ORIGIN set on new connection
// Netplay and CSIDevice_GCAdapter make use of this.
GCPadStatus Input(int chan);
void Output(int chan, u8 rumble_command);
bool IsDetected(const char** error_message);
bool DeviceConnected(int chan);