diff options
Diffstat (limited to 'backends/platform')
| -rw-r--r-- | backends/platform/gph/gph-hw.cpp | 25 | ||||
| -rw-r--r-- | backends/platform/gph/gph-hw.h | 8 | ||||
| -rw-r--r-- | backends/platform/openpandora/module.mk | 1 | ||||
| -rw-r--r-- | backends/platform/openpandora/op-options.cpp | 56 | ||||
| -rw-r--r-- | backends/platform/openpandora/op-options.h | 39 | 
5 files changed, 0 insertions, 129 deletions
diff --git a/backends/platform/gph/gph-hw.cpp b/backends/platform/gph/gph-hw.cpp index 7b004f1739..74e3cc39d3 100644 --- a/backends/platform/gph/gph-hw.cpp +++ b/backends/platform/gph/gph-hw.cpp @@ -82,28 +82,3 @@ void mixerMoveVolume(int direction) {  }  } /* namespace WIZ_HW */ - -namespace GPH { - -enum { -	/* Touchscreen TapMode */ -	TAPMODE_LEFT        = 0, -	TAPMODE_RIGHT       = 1, -	TAPMODE_HOVER       = 2 -}; - -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_LEFT; -	} else { -		tapmodeLevel = TAPMODE_LEFT; -	} -} - -} /* namespace GPH */ diff --git a/backends/platform/gph/gph-hw.h b/backends/platform/gph/gph-hw.h index c6d0094cf1..116af2fff4 100644 --- a/backends/platform/gph/gph-hw.h +++ b/backends/platform/gph/gph-hw.h @@ -38,12 +38,4 @@ extern void mixerMoveVolume(int);  } /* namespace WIZ_HW */ -namespace GPH { - -extern int tapmodeLevel; - -extern void ToggleTapMode(); - -} /* namespace GPH */ -  #endif //GPH_HW_H 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  | 
