GestureListener's fling method doesn't get called
- by nosferat
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?