From 363223352ee9c4c7c1d65e49cf48b38b538abaf2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 9 Nov 2012 01:53:40 +0300 Subject: Moving Android on screen keyboard button from SDL to ManaPlus. Also add basic functions for handling other on screen buttons. --- src/gui/theme.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui/theme.cpp') 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() -- cgit v1.2.3-70-g09d2