AndroidInput now correctly dispatches DOUBLETAP event
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8994 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
1ad66ae75c
commit
a906b97be3
@ -25,7 +25,7 @@ import java.util.logging.Logger;
|
||||
*
|
||||
*/
|
||||
public class AndroidInput extends GLSurfaceView implements TouchInput,
|
||||
GestureDetector.OnGestureListener, ScaleGestureDetector.OnScaleGestureListener {
|
||||
GestureDetector.OnGestureListener, GestureDetector.OnDoubleTapListener, ScaleGestureDetector.OnScaleGestureListener {
|
||||
|
||||
final private static int MAX_EVENTS = 1024;
|
||||
// Custom settings
|
||||
@ -570,6 +570,10 @@ public class AndroidInput extends GLSurfaceView implements TouchInput,
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean onDoubleTapEvent(MotionEvent event) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean onScaleBegin(ScaleGestureDetector scaleGestureDetector) {
|
||||
TouchEvent touch = getNextFreeTouchEvent();
|
||||
touch.set(Type.SCALE_START, scaleGestureDetector.getFocusX(), scaleGestureDetector.getFocusY(), 0f, 0f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user