From b7215472136c91841d44decd6955b4eb3e3e2ce1 Mon Sep 17 00:00:00 2001 From: dhewg Date: Fri, 18 Mar 2011 21:05:46 +0100 Subject: ANDROID: Implement trackball click --- backends/platform/android/org/inodes/gus/scummvm/ScummVMEvents.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'backends/platform/android/org') diff --git a/backends/platform/android/org/inodes/gus/scummvm/ScummVMEvents.java b/backends/platform/android/org/inodes/gus/scummvm/ScummVMEvents.java index da589a326e..baf128292e 100644 --- a/backends/platform/android/org/inodes/gus/scummvm/ScummVMEvents.java +++ b/backends/platform/android/org/inodes/gus/scummvm/ScummVMEvents.java @@ -48,8 +48,10 @@ public class ScummVMEvents implements } public boolean onTrackballEvent(MotionEvent e) { - _scummvm.pushEvent(JE_BALL, (int)(e.getX() * e.getXPrecision() * 100), - (int)(e.getY() * e.getYPrecision() * 100), 0, 0, 0); + _scummvm.pushEvent(JE_BALL, e.getAction(), + (int)(e.getX() * e.getXPrecision() * 100), + (int)(e.getY() * e.getYPrecision() * 100), + 0, 0); return true; } -- cgit v1.2.3