Catching multiple keystrokes simultaneously in Cocoa

Posted by Vinod Kumar on Stack Overflow See other posts from Stack Overflow or by Vinod Kumar
Published on 2010-04-27T19:43:34Z Indexed on 2010/04/27 20:03 UTC
Read the original article Hit count: 255

Filed under:
|
|

I have used 4 NSButtons and assigned them to the 4 arrow keys separately to move in four different directions. Now I want to use two keystrokes, left arrow and up arrow together simultaneously, for north east movement, how can I do it?

I am only able to use one keystroke at a time , I need to catch two key strokes simultaneously, I need it for my game project.

© Stack Overflow or respective owner

Related posts about macosx

Related posts about cocoa