|
|
@ -551,14 +551,10 @@ public class AndroidInput extends GLSurfaceView implements TouchInput, |
|
|
|
return true; |
|
|
|
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; |
|
|
|
public boolean onSingleTapConfirmed(MotionEvent event) { |
|
|
|
|
|
|
|
//Nothing to do here the tap has already been detected.
|
|
|
|
|
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean onDoubleTap(MotionEvent event) { |
|
|
|
public boolean onDoubleTap(MotionEvent event) { |
|
|
|