aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bacca2005-03-26 14:09:21 +0000
committerNicolas Bacca2005-03-26 14:09:21 +0000
commit8c37cd52a6ad86c2e720ef1a0e45edb9ab265620 (patch)
treeb128a33d66f9017b0980b94a72e8919c17421eac
parent06ed39e0314962f7d75a14509476486ab5304dd0 (diff)
downloadscummvm-rg350-8c37cd52a6ad86c2e720ef1a0e45edb9ab265620.tar.gz
scummvm-rg350-8c37cd52a6ad86c2e720ef1a0e45edb9ab265620.tar.bz2
scummvm-rg350-8c37cd52a6ad86c2e720ef1a0e45edb9ab265620.zip
Quit game with 'Action key' on WinCE Smartphones
svn-id: r17246
-rw-r--r--simon/items.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/simon/items.cpp b/simon/items.cpp
index f4698f53de..3b0850761d 100644
--- a/simon/items.cpp
+++ b/simon/items.cpp
@@ -28,6 +28,10 @@
#include "common/system.h"
+#ifdef _WIN32_WCE
+extern bool isSmartphone(void);
+#endif
+
namespace Simon {
int SimonEngine::runScript() {
@@ -1297,6 +1301,16 @@ void SimonEngine::o_inventory_descriptions() {
void SimonEngine::o_quit_if_user_presses_y() {
for (;;) {
delay(1);
+#ifdef _WIN32_WCE
+ if (isSmartphone()) {
+ if (_key_pressed) {
+ if (_key_pressed == 13)
+ shutdown();
+ else
+ break;
+ }
+ }
+#endif
if (_key_pressed == 'f' && _language == 20) // Hebrew
shutdown();
if (_key_pressed == 's' && _language == 5) // Spanish