mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 23:15:38 +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) << "."
|
LOG(LogInfo) << "SDL version: " << std::to_string(version.major) << "."
|
||||||
<< std::to_string(version.minor) << "." << std::to_string(version.patch);
|
<< std::to_string(version.minor) << "." << std::to_string(version.patch);
|
||||||
|
|
||||||
|
#if !defined(__ANDROID__)
|
||||||
if (version.major > 2 || (version.major == 2 && version.minor >= 28)) {
|
if (version.major > 2 || (version.major == 2 && version.minor >= 28)) {
|
||||||
// This will prevent the popup virtual keyboard of any handheld device from being
|
// This will prevent the popup virtual keyboard of any handheld device from being
|
||||||
// automatically displayed on top of the ES-DE virtual keyboard.
|
// automatically displayed on top of the ES-DE virtual keyboard.
|
||||||
#define SDL_HINT_ENABLE_SCREEN_KEYBOARD "SDL_ENABLE_SCREEN_KEYBOARD"
|
#define SDL_HINT_ENABLE_SCREEN_KEYBOARD "SDL_ENABLE_SCREEN_KEYBOARD"
|
||||||
SDL_SetHint(SDL_HINT_ENABLE_SCREEN_KEYBOARD, "0");
|
SDL_SetHint(SDL_HINT_ENABLE_SCREEN_KEYBOARD, "0");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
MameNames::getInstance();
|
MameNames::getInstance();
|
||||||
ThemeData::populateThemes();
|
ThemeData::populateThemes();
|
||||||
|
|
Loading…
Reference in a new issue