Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Detecting control or alt key pressed

 
Mich Robinson
Ranch Hand
Posts: 260
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To integrate one of my games into the mame environment I need to use the standard keys. For this I need to be able to detect if the control key or the Alt key has been pressed. Please note that other keys may (or may not) be pressed at the same time.

I'm currently using the keyDown method but this won't do it.

Any ideas?
 
Mich Robinson
Ranch Hand
Posts: 260
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Turned out I just needed to use the newer keyPressed routines rather than the ancient keyDown ones I was using.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic