AndroidInput now correctly dispatches DOUBLETAP event

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8994 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 13 years ago
parent 1ad66ae75c
commit a906b97be3
  1. 6
      engine/src/android/com/jme3/input/android/AndroidInput.java

@ -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…
Cancel
Save