This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in keyPressed  RSS feed

 
madan singh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am working for samsungx430 and when i press left key in game it store key values i.e if i press leftkey(left DPAD)5 times and then press right key continuously it move graphics object in left direction 5 times after that it move right but what i want is to move object only 2 times left and then right. Please tell me how to flush stored key values.

Thanks
mad
 
Koh Khai Huat
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear madan singh,

could you please tell us more on wad u wan to do??? thanks

regards
Khai Huat
 
Get out of my mind! Look! A tiny ad!
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!