aboutsummaryrefslogtreecommitdiff
path: root/gui/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/options.cpp')
-rw-r--r--gui/options.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/gui/options.cpp b/gui/options.cpp
index b3bd63f5c6..58afa3e37b 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -397,6 +397,11 @@ GlobalOptionsDialog::GlobalOptionsDialog(GameDetector &detector)
yoffset += 18;
#endif
+#ifdef _WIN32_WCE
+ new ButtonWidget(tab, 5, yoffset, kButtonWidth + 14, 16, "Keys", kChooseKeyMappingCmd, 0);
+ yoffset += 18;
+#endif
+
// TODO: joystick setting
@@ -409,10 +414,18 @@ GlobalOptionsDialog::GlobalOptionsDialog(GameDetector &detector)
// Create file browser dialog
_browser = new BrowserDialog("Select directory for savegames");
+
+#ifdef _WIN32_WCE
+ _keysDialog = new CEKeysDialog();
+#endif
}
GlobalOptionsDialog::~GlobalOptionsDialog() {
delete _browser;
+
+#ifdef _WIN32_WCE
+ delete _keysDialog;
+#endif
}
void GlobalOptionsDialog::open() {
@@ -469,6 +482,11 @@ void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3
_extraPath->setLabel(dir.path());
}
break;
+#ifdef _WIN32_WCE
+ case kChooseKeyMappingCmd:
+ _keysDialog->runModal();
+ break;
+#endif
default:
OptionsDialog::handleCommand(sender, cmd, data);
}