From caf6151bba4f0bc6956a45173f49cb056cf59bb4 Mon Sep 17 00:00:00 2001 From: Lars Persson Date: Tue, 5 Jul 2005 20:51:54 +0000 Subject: Last modifications for Actions to WinCE. svn-id: r18500 --- backends/sdl/graphics.cpp | 2 +- backends/wince/CEActions.cpp | 151 --------------------------------- backends/wince/CEActions.h | 83 ------------------ backends/wince/CEActionsPocket.cpp | 6 +- backends/wince/CEActionsSmartphone.cpp | 6 +- 5 files changed, 11 insertions(+), 237 deletions(-) delete mode 100644 backends/wince/CEActions.cpp delete mode 100644 backends/wince/CEActions.h (limited to 'backends') diff --git a/backends/sdl/graphics.cpp b/backends/sdl/graphics.cpp index f1f84e63ec..82e431e4eb 100644 --- a/backends/sdl/graphics.cpp +++ b/backends/sdl/graphics.cpp @@ -513,7 +513,7 @@ void OSystem_SDL::internUpdateScreen() { ScalerProc *scalerProc; int scale1, scale2; -#ifdef DEBUG // definitions not available for non-DEBUG here. (needed this to compile in SYMBIAN32 & linux?) +#if defined (DEBUG) && ! defined(_WIN32_WCE) // definitions not available for non-DEBUG here. (needed this to compile in SYMBIAN32 & linux?) assert(_hwscreen != NULL); assert(_hwscreen->map->sw_data != NULL); #endif diff --git a/backends/wince/CEActions.cpp b/backends/wince/CEActions.cpp deleted file mode 100644 index 2e7d9fd4b8..0000000000 --- a/backends/wince/CEActions.cpp +++ /dev/null @@ -1,151 +0,0 @@ -/* ScummVM - Scumm Interpreter - * Copyright (C) 2001-2005 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 - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Header$ - * - */ - -#include "common/stdafx.h" -#include "CEActions.h" -#include "CEActionsPocket.h" -#include "CEActionsSmartphone.h" - -#include "gui/message.h" - -#include "scumm/scumm.h" - -#include "common/config-manager.h" - - -CEActions* CEActions::Instance() { - return _instance; -} - -CEActions::CEActions(GameDetector &detector) : - _detector(&detector), _mapping_active(false), _initialized(false) -{ -} - - -CEActions::~CEActions() { -} - -void CEActions::init(GameDetector &detector) { - if (!CEDevice::hasSmartphoneResolution()) - CEActionsPocket::init(detector); -//#ifdef WIN32_PLATFORM_WFSP - else - CEActionsSmartphone::init(detector); -//#endif -} - -void CEActions::initInstanceMain(OSystem *mainSystem) { - _mainSystem = mainSystem; -} - -void CEActions::initInstanceGame() { - _instance->_initialized = true; -} - - -bool CEActions::initialized() { - return _initialized; -} - -bool CEActions::isActive(ActionType action) { - return false; -} - -bool CEActions::isEnabled(ActionType action) { - return _action_enabled[action]; -} - -void CEActions::beginMapping(bool start) { - _mapping_active = start; -} - -bool CEActions::mappingActive() { - return _mapping_active; -} - -bool CEActions::performMapped(unsigned int keyCode, bool pushed) { - int i; - - for (i=0; i