aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/openpandora
diff options
context:
space:
mode:
authorCameron Cawley2019-11-03 22:33:06 +0000
committerDavid Turner2019-11-30 20:50:27 +0000
commit00fecbb6e638a943c6f45cca84986ba38803ad91 (patch)
treef988c3635c90ef6aa9be0372a34bca310358dad1 /backends/platform/openpandora
parent54e6cf4cda16cfbb4ea5e3b728188fb837468279 (diff)
downloadscummvm-rg350-00fecbb6e638a943c6f45cca84986ba38803ad91.tar.gz
scummvm-rg350-00fecbb6e638a943c6f45cca84986ba38803ad91.tar.bz2
scummvm-rg350-00fecbb6e638a943c6f45cca84986ba38803ad91.zip
GPH/OPENPANDORA: Move ToggleTapMode() into the event manager
Diffstat (limited to 'backends/platform/openpandora')
-rw-r--r--backends/platform/openpandora/module.mk1
-rw-r--r--backends/platform/openpandora/op-options.cpp56
-rw-r--r--backends/platform/openpandora/op-options.h39
3 files changed, 0 insertions, 96 deletions
diff --git a/backends/platform/openpandora/module.mk b/backends/platform/openpandora/module.mk
index 5bd568e1c4..0776bc22a4 100644
--- a/backends/platform/openpandora/module.mk
+++ b/backends/platform/openpandora/module.mk
@@ -1,7 +1,6 @@
MODULE := backends/platform/openpandora
MODULE_OBJS := \
- op-options.o \
op-backend.o \
op-main.o
diff --git a/backends/platform/openpandora/op-options.cpp b/backends/platform/openpandora/op-options.cpp
deleted file mode 100644
index d2e7860962..0000000000
--- a/backends/platform/openpandora/op-options.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-/*
- * OpenPandora: Options, custom code and hardware stuff.
- *
- */
-
-#include "backends/platform/openpandora/op-options.h"
-
-namespace OP {
-
-enum {
- /* Touchscreen TapMode */
- TAPMODE_LEFT = 0,
- TAPMODE_RIGHT = 1,
- TAPMODE_HOVER = 2,
- TAPMODE_HOVER_DPAD = 3
-};
-
-int tapmodeLevel = TAPMODE_LEFT;
-
-void ToggleTapMode() {
- if (tapmodeLevel == TAPMODE_LEFT) {
- tapmodeLevel = TAPMODE_RIGHT;
- } else if (tapmodeLevel == TAPMODE_RIGHT) {
- tapmodeLevel = TAPMODE_HOVER;
- } else if (tapmodeLevel == TAPMODE_HOVER) {
- tapmodeLevel = TAPMODE_HOVER_DPAD;
- } else if (tapmodeLevel == TAPMODE_HOVER_DPAD) {
- tapmodeLevel = TAPMODE_LEFT;
- } else {
- tapmodeLevel = TAPMODE_LEFT;
- }
-}
-
-} /* namespace OP */
diff --git a/backends/platform/openpandora/op-options.h b/backends/platform/openpandora/op-options.h
deleted file mode 100644
index 8eae420af2..0000000000
--- a/backends/platform/openpandora/op-options.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-/*
- * OpenPandora: Options, custom code and hardware stuff.
- *
- */
-
-#ifndef OP_OPTIONS_H
-#define OP_OPTIONS_H
-
-namespace OP {
-
-extern int tapmodeLevel;
-
-extern void ToggleTapMode();
-
-} /* namespace OP */
-
-#endif //OP_OPTIONS_H