From ff5b47410174e1ab4d1745b06953efcdf06ba1fb Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 11 Mar 2024 00:33:21 +0100 Subject: [PATCH] (Android) Disabled exclusive controller access using SDL_HINT_JOYSTICK_HIDAPI --- es-app/src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/es-app/src/main.cpp b/es-app/src/main.cpp index 37553cb25..1395c2eae 100644 --- a/es-app/src/main.cpp +++ b/es-app/src/main.cpp @@ -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