Search code examples
javaandroidlibgdx

LibGdx double tap


I want to detect double taps in libgdx using the tap method of the GestureDetector. GestureListener class. I searched the Web for the last two days but I couldn't find an example of how to do it. I know that the method has a "count" variable but I don't know how to use it. Thanks in advance.


Solution

  • There is an example of usage of GestureDetector with multiple tapping detection in one of libGDX's tests: GestureDetectorTest.java.