diff options
Diffstat (limited to 'gui/objects.hpp')
-rw-r--r-- | gui/objects.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/objects.hpp b/gui/objects.hpp index 881b39050..be1f9734f 100644 --- a/gui/objects.hpp +++ b/gui/objects.hpp @@ -853,6 +853,7 @@ protected: }; int ParseKey(const char* keyinfo, Key& key, int& Xindex, int keyWidth, bool longpress); void LoadKeyLabels(xml_node<>* parent, int layout); + void DrawKey(Key& key, int keyX, int keyY, int keyW, int keyH); enum { MAX_KEYBOARD_LAYOUTS = 5, @@ -886,7 +887,8 @@ protected: std::string mVariable; int currentLayout; bool CapsLockOn; - int rowY, colX, highlightRenderCount; + int highlightRenderCount; + Key* currentKey; bool hasHighlight, hasCapsHighlight; COLOR mHighlightColor; COLOR mCapsHighlightColor; @@ -895,6 +897,7 @@ protected: FontResource* mFont; // for main key labels FontResource* mSmallFont; // for key labels like "?123" FontResource* mLongpressFont; // for the small longpress label in the upper right corner + int longpressOffsetX, longpressOffsetY; // distance of the longpress label from the key corner COLOR mLongpressFontColor; COLOR mBackgroundColor; // keyboard background color COLOR mKeyColorAlphanumeric; // key background color |