mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-24 08:59:15 +00:00
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. |
||
|---|---|---|
| .. | ||
| ControllerEmu | ||
| ControllerInterface | ||
| ControlReference | ||
| DynamicInputTextures | ||
| CMakeLists.txt | ||
| DynamicInputTextureManager.cpp | ||
| DynamicInputTextureManager.h | ||
| GCAdapter.cpp | ||
| GCAdapter.h | ||
| GCPadStatus.h | ||
| ImageOperations.cpp | ||
| ImageOperations.h | ||
| InputConfig.cpp | ||
| InputConfig.h | ||
| InputProfile.cpp | ||
| InputProfile.h | ||
| KeyboardStatus.h | ||