summaryrefslogtreecommitdiff
path: root/src/client.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-11 22:25:21 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-11 22:25:21 +0300
commit120ef46ea296729baee0c88c046008d8e18644fa (patch)
tree36ac86de113f11e60c31008ea15d286bb30d831d /src/client.h
parentc4d16b36a373ba5609360e2698372926d7f2dc0f (diff)
downloadManaVerse-120ef46ea296729baee0c88c046008d8e18644fa.tar.gz
ManaVerse-120ef46ea296729baee0c88c046008d8e18644fa.tar.bz2
ManaVerse-120ef46ea296729baee0c88c046008d8e18644fa.tar.xz
ManaVerse-120ef46ea296729baee0c88c046008d8e18644fa.zip
Add ability to show onscreen keyboard if input field focused.
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h
index 733bc21e8..c321cd385 100644
--- a/src/client.h
+++ b/src/client.h
@@ -291,6 +291,9 @@ public:
const bool always = false)
{ instance()->resizeVideo(width, height, always); }
+ static bool isKeyboardVisible()
+ { return instance()->mKeyboardHeight > 1; }
+
static void setGuiAlpha(const float n);
static float getGuiAlpha() A_WARN_UNUSED;
@@ -422,6 +425,7 @@ private:
Skin *mSkin;
int mButtonPadding;
int mButtonSpacing;
+ int mKeyboardHeight;
};
#endif // CLIENT_H