Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

about GameCanvas  RSS feed

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Can I use the method keyPressed() inside GameCanvas?
2. Won't there be any conflict with getKeyStates()?
 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope there will be no confilc with the get key state because u need to get the key state when a key is pressed.

u can refer to the API for more information
 
A teeny tiny vulgar attempt to get you to buy our stuff
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!