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

This commit is contained in:
Jordan Woyak
2022-10-22 00:38:59 -05:00
parent 79e09c3731
commit 5ed0543430
2 changed files with 186 additions and 134 deletions
File diff suppressed because it is too large Load Diff
+4
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);