My cocoa app won't capture key events
- by Oscar
Hi, i usually develop for iPhone. But now trying to make a pong game in Cocoa desktop application. Working out pretty well, but i can't find a way to capture key events.
Here's my code:
#import "PongAppDelegate.h"
#define GameStateRunning 1
#define GameStatePause 2
#define BallSpeedX 10
#define BallSpeedY 15
@implementation PongAppDelegate
…