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
3.0
rem..om 13 years ago
parent 0b5f6ee4d8
commit dd76ee0890
  1. 10
      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) {

Loading…
Cancel
Save