This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Android and the fly likes How to implement OnGestureListener? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to implement OnGestureListener?" Watch "How to implement OnGestureListener?" New topic
Author

How to implement OnGestureListener?

manish ghildiyal
Ranch Hand

Joined: Jan 12, 2013
Posts: 136
Hi,

I am working on a game based exactly on same architecture as used in SuperJumper game of book 'Beginning Android Games'.
I want to have swipe functionality. So I have implemented OnGestureListener.
So I have put the OnGestureListener instance in AndroidInput just like we have for TouchHandler.
But onFling() is not getting called.


Where am I going wrong?
Please advise.

I have also posted same query on forum for Badlogic games(http://badlogicgames.com/forum/viewtopic.php?f=21&t=11603).

Manish
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to implement OnGestureListener?