aboutsummaryrefslogtreecommitdiff
path: root/gui.cpp
diff options
context:
space:
mode:
authorNicolas Bacca2002-08-04 21:52:40 +0000
committerNicolas Bacca2002-08-04 21:52:40 +0000
commit0a49d13e007aea691bca659f27c88fcc23f815e9 (patch)
treead0ae9c525497e77c46beeb60cfe752df065fee8 /gui.cpp
parent726339d09ffeefa62c1342a6762fe88fd95215f9 (diff)
downloadscummvm-rg350-0a49d13e007aea691bca659f27c88fcc23f815e9.tar.gz
scummvm-rg350-0a49d13e007aea691bca659f27c88fcc23f815e9.tar.bz2
scummvm-rg350-0a49d13e007aea691bca659f27c88fcc23f815e9.zip
Better WinCE virtual keyboard management
svn-id: r4704
Diffstat (limited to 'gui.cpp')
-rw-r--r--gui.cpp25
1 files changed, 24 insertions, 1 deletions
diff --git a/gui.cpp b/gui.cpp
index 306cecd5ba..7097803e74 100644
--- a/gui.cpp
+++ b/gui.cpp
@@ -36,12 +36,16 @@
// Additional variables for WinCE specific GUI
#include "gapi_keys.h"
extern bool toolbar_drawn;
+extern bool hide_toolbar;
extern bool draw_keyboard;
extern bool get_key_mapping;
extern struct keyops keyMapping;
extern void save_key_mapping(void);
+extern void do_hide(bool);
uint16 _key_mapping_required;
uint16 _current_page;
+bool keyboard_override;
+bool save_hide_toolbar;
#else
#define save_key_mapping() ;
bool get_key_mapping;
@@ -1111,7 +1115,12 @@ void Gui::close()
#ifdef _WIN32_WCE
// Option dialog can be accessed from the file dialog now, always check
- if (draw_keyboard) {
+ if (save_hide_toolbar) {
+ do_hide(true);
+ save_hide_toolbar = false;
+ }
+ if (keyboard_override) {
+ keyboard_override = false;
draw_keyboard = false;
toolbar_drawn = false;
}
@@ -1151,6 +1160,20 @@ void Gui::saveLoadDialog()
_active = true;
_cur_page = 0;
_dialog = SAVELOAD_DIALOG;
+
+#ifdef _WIN32_WCE
+ save_hide_toolbar = hide_toolbar;
+ if (save_hide_toolbar) {
+ // Display the keyboard while the dialog is running
+ do_hide(false);
+ }
+ if (!draw_keyboard) {
+ keyboard_override = true;
+ draw_keyboard = true;
+ toolbar_drawn = false;
+ }
+#endif
+
}
void Gui::pause()