(Android) Disabled exclusive controller access using SDL_HINT_JOYSTICK_HIDAPI

This commit is contained in:
Leon Styhre 2024-03-11 00:33:21 +01:00
parent c1f1ebad5e
commit ff5b474101

View file

@ -605,6 +605,11 @@ int main(int argc, char* argv[])
#endif
#if defined(__ANDROID__)
// This hint will prevent a popup from being displayed asking for access to the controller.
// Pressing OK in that dialog grants exclusive access to the controller which makes it
// unusable in any emulator that is launched.
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI, "0");
bool resetTouchOverlay {false};
// If ES-DE is set as the home app/launcher we may be in a situation where we get started