[Scummvm-cvs-logs] CVS: scummvm/simon items.cpp,1.113,1.113.2.1
Nicolas Bacca
arisme at users.sourceforge.net
Sat Mar 26 06:08:15 CET 2005
Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25874
Modified Files:
Tag: branch-0-7-0
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.113
retrieving revision 1.113.2.1
diff -u -d -r1.113 -r1.113.2.1
--- items.cpp 27 Jun 2004 22:14:35 -0000 1.113
+++ items.cpp 26 Mar 2005 14:07:14 -0000 1.113.2.1
@@ -26,6 +26,10 @@
#include "simon/simon.h"
#include "simon/intern.h"
+#ifdef _WIN32_WCE
+extern bool isSmartphone(void);
+#endif
+
namespace Simon {
int SimonEngine::runScript() {
@@ -1295,6 +1299,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