diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-11-09 01:53:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-11-12 18:54:58 +0300 |
commit | 363223352ee9c4c7c1d65e49cf48b38b538abaf2 (patch) | |
tree | fd43f37cdcbe02083ef66fdd54baca3f0c709f0b /src/gui/theme.cpp | |
parent | 9d66ae92ac714b4a4b21e588a3e2d481c352cd60 (diff) | |
download | manaplus-363223352ee9c4c7c1d65e49cf48b38b538abaf2.tar.gz manaplus-363223352ee9c4c7c1d65e49cf48b38b538abaf2.tar.bz2 manaplus-363223352ee9c4c7c1d65e49cf48b38b538abaf2.tar.xz manaplus-363223352ee9c4c7c1d65e49cf48b38b538abaf2.zip |
Moving Android on screen keyboard button from SDL to ManaPlus.
Also add basic functions for handling other on screen buttons.
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r-- | src/gui/theme.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index 7331724d1..46506ecb4 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -46,6 +46,9 @@ static std::string defaultThemePath; std::string Theme::mThemePath; std::string Theme::mThemeName; Theme *Theme::mInstance = nullptr; +#ifdef ANDROID +SDL_Rect *Theme::mKeybRect = nullptr; +#endif // Set the theme path... static void initDefaultThemePath() @@ -634,6 +637,9 @@ void Theme::fillSoundsList(StringVect &list) void Theme::selectSkin() { prepareThemePath(); +#ifdef ANDROID + mKeybRect = SDL_GetScreenKeyboardBlock(); +#endif } void Theme::prepareThemePath() |