GestureListener's fling method doesn't get called

Posted by nosferat on Game Development See other posts from Game Development or by nosferat
Published on 2012-12-06T08:57:11Z Indexed on 2012/12/06 11:35 UTC
Read the original article Hit count: 255

Filed under:
|
|
|

I'm using SimpleGestureDetector from the libgdx-users Wiki as my InputProcessor. I set it in the created() method:

Gdx.input.setInputProcess(new SimpleDirectionGestureDetector(charController));

charController is my class which implements the DirectionListener interface defined in the SimpleDirectionGestureDetector class and it is responsible for moving the player character. However the character doesn't change direction when I'm performing a fling action in any direction. I've checked and the fling() method in the SimpleDirectionGesture class doesn't get called and I have no idea why, since everything seems good. What am I doing wrong?

© Game Development or respective owner

Related posts about java

Related posts about android