Win a copy of Murach's Python Programming this week in the Jython/Python 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!