Quantcast
Channel: Question and Answer » libgdx
Viewing all articles
Browse latest Browse all 434

Libgdx – How to change GestureListener pan finger sensibility?

$
0
0

I implemented GestureListener in my Overlap2dStage to pan the camera when the player drags its finger over the screen. But I also have some actors that extend InputAdapter to detect when the user touches on them. Then I mix them with a InputMultiplexer.

So far it’s working fine on my computer, but when I get into Android and tap an object it trigers both: pan() from stage and touchDown() from the actor.

I remember I read something about a pan box to decrease the sensibility, since in a touch screen you are touching several pixels, it detectes a pan. It’s worst in smaller screens.


Viewing all articles
Browse latest Browse all 434

Trending Articles