aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorBertrand Augereau2012-08-31 17:38:46 +0200
committerBertrand Augereau2012-08-31 17:38:46 +0200
commit94921846eb48276f55f179b0adadc718e40addfe (patch)
tree87f0cb7d9c4237a4a87ed79a356d7d9042b5b49f /backends/platform
parent10a947a0be80ea8c5c88bd3493a5057b1223ce45 (diff)
downloadscummvm-rg350-94921846eb48276f55f179b0adadc718e40addfe.tar.gz
scummvm-rg350-94921846eb48276f55f179b0adadc718e40addfe.tar.bz2
scummvm-rg350-94921846eb48276f55f179b0adadc718e40addfe.zip
OPENPANDORA: New touchscreen mode where the stylus hovers and the DPad left/right/up trigger left/right/middle clicks
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/openpandora/op-options.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/platform/openpandora/op-options.cpp b/backends/platform/openpandora/op-options.cpp
index 58f0fb7188..758f5600bc 100644
--- a/backends/platform/openpandora/op-options.cpp
+++ b/backends/platform/openpandora/op-options.cpp
@@ -33,7 +33,8 @@ enum {
/* Touchscreen TapMode */
TAPMODE_LEFT = 0,
TAPMODE_RIGHT = 1,
- TAPMODE_HOVER = 2
+ TAPMODE_HOVER = 2,
+ TAPMODE_HOVER_DPAD = 3,
};
int tapmodeLevel = TAPMODE_LEFT;
@@ -44,6 +45,8 @@ void ToggleTapMode() {
} 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;