diff options
| author | JosJuice <josjuice@gmail.com> | 2025-01-02 17:22:29 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2025-07-27 11:21:04 +0200 |
| commit | e2e33becc9934f9af850fc2e2b5c77cf0eb15683 (patch) | |
| tree | 4a8f2e5c075b0fb96ee56baf565725d328bbf16a /Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModAsset.h | |
| parent | 7508842859bc1c791d1fff2ba514f547a59a631d (diff) | |
Android: Detect GCAdapter connection using BroadcastReceiver
We can register a BroadcastReceiver to have Android tell us when a GC
adapter gets connected instead of having a loop where we continuously
call SleepCurrentThread(1000) and poll the current status. When waiting
for a GC adapter to connect, this both reduces power usage and improves
responsiveness.
Note that I made openAdapter get the UsbDevice that's been stored by the
hotplug code instead of having openAdapter find the UsbDevice on its own
like before. This is only because I want to ensure that the UsbDevice
being tracked for disconnection is the same as the UsbDevice actually
being used, in case the user has multiple adapters connected.
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModAsset.h')
0 files changed, 0 insertions, 0 deletions
