Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading keys as they are pressed, how?  RSS feed

 
Patrik Svensson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to read keys the moment they are pressed but most streams seem to wait for a "end of input" char or something.
I've been told that it's possible with awt and swing, but I would rather not involve the gui stuff. So is there an easy way to do it?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!