diff options
author | Nicolas Bacca | 2005-03-26 14:09:21 +0000 |
---|---|---|
committer | Nicolas Bacca | 2005-03-26 14:09:21 +0000 |
commit | 8c37cd52a6ad86c2e720ef1a0e45edb9ab265620 (patch) | |
tree | b128a33d66f9017b0980b94a72e8919c17421eac | |
parent | 06ed39e0314962f7d75a14509476486ab5304dd0 (diff) | |
download | scummvm-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.cpp | 14 |
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 |