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
This commit is contained in:
rem..om 2012-01-08 15:05:52 +00:00
parent 0b5f6ee4d8
commit dd76ee0890

View File

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