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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user