mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 15:15:37 +00:00
(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:
parent
0af45b03e3
commit
2afa1a7898
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue