(Android) Disabled the use of SDL_HINT_ENABLE_SCREEN_KEYBOARD from the C++ code as this hint is set via AndroidManifest.xml

This commit is contained in:
Leon Styhre 2024-01-31 22:54:04 +01:00
parent 0af45b03e3
commit 2afa1a7898

View file

@ -1003,12 +1003,14 @@ int main(int argc, char* argv[])
LOG(LogInfo) << "SDL version: " << std::to_string(version.major) << "."
<< std::to_string(version.minor) << "." << std::to_string(version.patch);
#if !defined(__ANDROID__)
if (version.major > 2 || (version.major == 2 && version.minor >= 28)) {
// This will prevent the popup virtual keyboard of any handheld device from being
// automatically displayed on top of the ES-DE virtual keyboard.
#define SDL_HINT_ENABLE_SCREEN_KEYBOARD "SDL_ENABLE_SCREEN_KEYBOARD"
SDL_SetHint(SDL_HINT_ENABLE_SCREEN_KEYBOARD, "0");
}
#endif
MameNames::getInstance();
ThemeData::populateThemes();