Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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?

share|improve this question
    
the users wiki is outdated –  Matsemann Dec 7 '12 at 17:17

1 Answer 1

up vote 0 down vote accepted

Hope this will help you. If not - let me know, maybe I will make small test app for you.

share|improve this answer
    
Thank you this worked me very well. –  nosferat Dec 9 '12 at 15:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.