Przeglądaj źródła

Fixed Tap confirme event that was sending 2 tap events on each tap

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8998 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
rem..om 14 lat temu
rodzic
commit
dd76ee0890

+ 3 - 7
engine/src/android/com/jme3/input/android/AndroidInput.java

@@ -551,14 +551,10 @@ public class AndroidInput extends GLSurfaceView implements TouchInput,
         return true;
     }
 
+    
     public boolean onSingleTapConfirmed(MotionEvent event) {
-        TouchEvent touch = getNextFreeTouchEvent();
-        touch.set(Type.TAP, event.getX(), this.getHeight() - event.getY(), 0f, 0f);
-        touch.setPointerId(0);
-        touch.setTime(event.getEventTime());
-        processEvent(touch);
-
-        return true;
+        //Nothing to do here the tap has already been detected.
+        return false;
     }
 
     public boolean onDoubleTap(MotionEvent event) {