mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
(Android) Disabled exclusive controller access using SDL_HINT_JOYSTICK_HIDAPI
This commit is contained in:
parent
c1f1ebad5e
commit
ff5b474101
|
@ -605,6 +605,11 @@ int main(int argc, char* argv[])
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__ANDROID__)
|
#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};
|
bool resetTouchOverlay {false};
|
||||||
|
|
||||||
// If ES-DE is set as the home app/launcher we may be in a situation where we get started
|
// If ES-DE is set as the home app/launcher we may be in a situation where we get started
|
||||||
|
|
Loading…
Reference in a new issue