aboutsummaryrefslogtreecommitdiff
path: root/backends/wince/pocketpc.cpp
diff options
context:
space:
mode:
authorNicolas Bacca2003-05-05 07:18:47 +0000
committerNicolas Bacca2003-05-05 07:18:47 +0000
commit0fa15ffa6a70c72ace03c7818804092041afcb23 (patch)
tree1cf596417a97c12da18b9bbc13cd3e30ec71f7cf /backends/wince/pocketpc.cpp
parente98bb315b126e8269c475b3da5a25606c35b6d0a (diff)
downloadscummvm-rg350-0fa15ffa6a70c72ace03c7818804092041afcb23.tar.gz
scummvm-rg350-0fa15ffa6a70c72ace03c7818804092041afcb23.tar.bz2
scummvm-rg350-0fa15ffa6a70c72ace03c7818804092041afcb23.zip
Handle COMI UI
svn-id: r7332
Diffstat (limited to 'backends/wince/pocketpc.cpp')
-rw-r--r--backends/wince/pocketpc.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/backends/wince/pocketpc.cpp b/backends/wince/pocketpc.cpp
index 4167c03f6a..b0f5924f25 100644
--- a/backends/wince/pocketpc.cpp
+++ b/backends/wince/pocketpc.cpp
@@ -30,11 +30,13 @@ extern int num_of_dirty_square;
extern bool toolbar_drawn;
extern Engine *engine;
extern bool sound_activated;
+extern char is_demo;
extern ToolbarSelected getToolbarSelection(int, int);
extern void redrawSoundItem();
extern int mapKey(int key);
extern void handleSelectGame(int, int);
+extern void do_quit();
const char KEYBOARD_MAPPING_ALPHA_HIGH[] = {"ABCDEFGHIJKLM"};
const char KEYBOARD_MAPPING_NUMERIC_HIGH[] = {"12345"};
@@ -216,7 +218,7 @@ BOOL PPCWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, OSystem_W
*/
/*}*/
wm->_event.event_code = OSystem::EVENT_KEYDOWN;
- if (g_scumm->_features & GF_OLD256)
+ if (g_scumm->_features & GF_OLD256 || g_scumm->_gameId == GID_CMI)
wm->_event.kbd.ascii = 319;
else
wm->_event.kbd.ascii = g_scumm->_vars[g_scumm->VAR_SAVELOADDIALOG_KEY];
@@ -228,6 +230,8 @@ BOOL PPCWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, OSystem_W
toolbar_drawn = false;
break;
case ToolbarSkip:
+ if (is_demo)
+ do_quit();
if (is_simon) {
((SimonState*)engine)->_exit_cutscene = true;
break;