32- (void)sendEvent:(NSEvent *)theEvent
34 NSEventType etype = [theEvent type];
47 [gameView
keyUp:theEvent];
54 [
super sendEvent:theEvent];
58- (void) setExitContext:(NSString *)exitContext
60 [_exitContext release];
65- (void) terminate:(
id)sender
67 if (
_exitContext ==
nil) [
self setExitContext:@"Cocoa terminate event"];
69 [
super terminate:sender];
#define OOLog(class, format,...)
IBOutlet MyOpenGLView * gameView
void keyDown:(NSEvent *theEvent)
void keyUp:(NSEvent *theEvent)
IBOutlet GameController * _gameController
IBOutlet NSWindow * _gameWindow