aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/wince/CEActionsPocket.cpp
diff options
context:
space:
mode:
authorKostas Nakos2007-04-28 17:34:09 +0000
committerKostas Nakos2007-04-28 17:34:09 +0000
commit4670ff73881c17b63f117c8442451380371dbbf4 (patch)
tree801123f34270da2f327e9846170e130d0eea39bc /backends/platform/wince/CEActionsPocket.cpp
parent6d1107615dcc0b5dc345c8f2e6391bc9f3c3d5dd (diff)
downloadscummvm-rg350-4670ff73881c17b63f117c8442451380371dbbf4.tar.gz
scummvm-rg350-4670ff73881c17b63f117c8442451380371dbbf4.tar.bz2
scummvm-rg350-4670ff73881c17b63f117c8442451380371dbbf4.zip
cleanup, more meaningful names for actions, fix quit dialog looks, bump action mapping version
svn-id: r26658
Diffstat (limited to 'backends/platform/wince/CEActionsPocket.cpp')
-rw-r--r--backends/platform/wince/CEActionsPocket.cpp35
1 files changed, 15 insertions, 20 deletions
diff --git a/backends/platform/wince/CEActionsPocket.cpp b/backends/platform/wince/CEActionsPocket.cpp
index 73d8dfe334..df1f1cad1b 100644
--- a/backends/platform/wince/CEActionsPocket.cpp
+++ b/backends/platform/wince/CEActionsPocket.cpp
@@ -1,5 +1,5 @@
/* ScummVM - Scumm Interpreter
- * Copyright (C) 2001-2006 The ScummVM project
+ * Copyright (C) 2001-2007 The ScummVM project
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -24,13 +24,9 @@
#include "common/stdafx.h"
#include "CEActionsPocket.h"
#include "EventsBuffer.h"
-
#include "gui/message.h"
-
#include "scumm/scumm.h"
-
#include "common/config-manager.h"
-
#include "gui/KeysDialog.h"
#ifdef _WIN32_WCE
@@ -42,20 +38,20 @@ const String pocketActionNames[] = {
"Save",
"Quit",
"Skip",
- "Hide",
- "Keyboard",
- "Sound",
+ "Hide Toolbar",
+ "Show Keyboard",
+ "Sound on/off",
"Right click",
- "Cursor",
+ "Show/Hide Cursor",
"Free look",
"Zoom up",
"Zoom down",
"FT Cheat",
"Bind Keys",
- "Up",
- "Down",
- "Left",
- "Right",
+ "Cursor Up",
+ "Cursor Down",
+ "Cursor Left",
+ "Cursor Right",
"Left Click",
};
@@ -100,11 +96,11 @@ GUI::Actions()
_action_enabled[POCKET_ACTION_DOWN] = true;
_action_enabled[POCKET_ACTION_LEFT] = true;
_action_enabled[POCKET_ACTION_RIGHT] = true;
- _action_mapping[POCKET_ACTION_LEFTCLICK] = VK_RETURN;
- _action_mapping[POCKET_ACTION_UP] = 0x111;
- _action_mapping[POCKET_ACTION_DOWN] = 0x112;
- _action_mapping[POCKET_ACTION_LEFT] = 0x114;
- _action_mapping[POCKET_ACTION_RIGHT] = 0x113;
+ _action_mapping[POCKET_ACTION_LEFTCLICK] = SDLK_RETURN;
+ _action_mapping[POCKET_ACTION_UP] = SDLK_UP;
+ _action_mapping[POCKET_ACTION_DOWN] = SDLK_DOWN;
+ _action_mapping[POCKET_ACTION_LEFT] = SDLK_LEFT;
+ _action_mapping[POCKET_ACTION_RIGHT] = SDLK_RIGHT;
}
void CEActionsPocket::initInstanceMain(OSystem *mainSystem) {
@@ -270,7 +266,7 @@ bool CEActionsPocket::perform(GUI::ActionType action, bool pushed) {
return true;
case POCKET_ACTION_QUIT:
{
- GUI::MessageDialog alert("Do you want to quit ?", "Yes", "No");
+ GUI::MessageDialog alert(" Are you sure you want to quit ? ", "Yes", "No");
if (alert.runModal() == GUI::kMessageOK)
_mainSystem->quit();
return true;
@@ -309,4 +305,3 @@ bool CEActionsPocket::needsZoomMapping() {
else
return (_action_mapping[POCKET_ACTION_ZOOM_UP] == 0 || _action_mapping[POCKET_ACTION_ZOOM_DOWN] == 0);
}
-