aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/org/inodes/gus
diff options
context:
space:
mode:
authordhewg2011-03-17 20:48:44 +0100
committerdhewg2011-03-17 21:01:49 +0100
commit8953581ec9dcde966ec7a5e2e7f2c37a4cf4d109 (patch)
tree66ca6188aaf61b70c824ccd5405115534c16d61b /backends/platform/android/org/inodes/gus
parent563ac93c166f31864c2bcaa9e99e71e2c5882910 (diff)
downloadscummvm-rg350-8953581ec9dcde966ec7a5e2e7f2c37a4cf4d109.tar.gz
scummvm-rg350-8953581ec9dcde966ec7a5e2e7f2c37a4cf4d109.tar.bz2
scummvm-rg350-8953581ec9dcde966ec7a5e2e7f2c37a4cf4d109.zip
ANDROID: Ignore the slop area on all touch scrolls
Prevents initial cursor jumps
Diffstat (limited to 'backends/platform/android/org/inodes/gus')
-rw-r--r--backends/platform/android/org/inodes/gus/scummvm/ScummVMEvents.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/backends/platform/android/org/inodes/gus/scummvm/ScummVMEvents.java b/backends/platform/android/org/inodes/gus/scummvm/ScummVMEvents.java
index 3d3fdeece4..7507d7e5fc 100644
--- a/backends/platform/android/org/inodes/gus/scummvm/ScummVMEvents.java
+++ b/backends/platform/android/org/inodes/gus/scummvm/ScummVMEvents.java
@@ -31,7 +31,6 @@ public class ScummVMEvents implements
final protected ScummVM _scummvm;
final protected GestureDetector _gd;
final protected int _longPress;
- final protected int _slop;
public ScummVMEvents(Context context, ScummVM scummvm) {
_context = context;
@@ -42,8 +41,6 @@ public class ScummVMEvents implements
_gd.setIsLongpressEnabled(false);
_longPress = ViewConfiguration.getLongPressTimeout();
- _slop = ViewConfiguration.get(context).getScaledTouchSlop();
-
}
final public void sendQuitEvent() {
@@ -167,7 +164,7 @@ public class ScummVMEvents implements
final public boolean onScroll(MotionEvent e1, MotionEvent e2,
float distanceX, float distanceY) {
_scummvm.pushEvent(JE_SCROLL, (int)e1.getX(), (int)e1.getY(),
- (int)e2.getX(), (int)e2.getY(), _slop);
+ (int)e2.getX(), (int)e2.getY(), 0);
return true;
}
@@ -189,7 +186,7 @@ public class ScummVMEvents implements
final public boolean onDoubleTapEvent(MotionEvent e) {
_scummvm.pushEvent(JE_DOUBLE_TAP, (int)e.getX(), (int)e.getY(),
- e.getAction(), _slop, 0);
+ e.getAction(), 0, 0);
return true;
}