From 4670ff73881c17b63f117c8442451380371dbbf4 Mon Sep 17 00:00:00 2001 From: Kostas Nakos Date: Sat, 28 Apr 2007 17:34:09 +0000 Subject: cleanup, more meaningful names for actions, fix quit dialog looks, bump action mapping version svn-id: r26658 --- backends/platform/wince/CEActionsPocket.cpp | 35 +++++++++++++---------------- 1 file changed, 15 insertions(+), 20 deletions(-) (limited to 'backends/platform/wince/CEActionsPocket.cpp') 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); } - -- cgit v1.2.3