[Scummvm-cvs-logs] CVS: scummvm/simon items.cpp,1.116,1.117
Nicolas Bacca
arisme at users.sourceforge.net
Sat Mar 26 06:10:52 CET 2005
Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27018
Modified Files:
items.cpp
Log Message:
Quit game with 'Action key' on WinCE Smartphones
Index: items.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/items.cpp,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -d -r1.116 -r1.117
--- items.cpp 10 Jan 2005 22:06:12 -0000 1.116
+++ items.cpp 26 Mar 2005 14:09:21 -0000 1.117
@@ -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_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
More information about the Scummvm-git-logs
mailing list