sgl

diff src/wsys_cocoa.m @ 14:5b8fb89fe63f

cocoa...
author John Tsiombikas <nuclear@siggraph.org>
date Mon, 16 May 2011 23:09:53 +0300
parents e989ab58ec5b
children a16b34ac3f2a
line diff
     1.1 --- a/src/wsys_cocoa.m	Mon May 16 23:05:57 2011 +0300
     1.2 +++ b/src/wsys_cocoa.m	Mon May 16 23:09:53 2011 +0300
     1.3 @@ -275,6 +275,7 @@
     1.4  {
     1.5  	NSAutoreleasePool *pool;
     1.6  	int state;
     1.7 +	sgl_idle_callback_t idle;
     1.8  
     1.9  	pool = [[NSAutoreleasePool alloc] init];
    1.10  
    1.11 @@ -291,7 +292,10 @@
    1.12  
    1.13  static int handle_event(NSEvent *ev)
    1.14  {
    1.15 -	/* TODO */
    1.16 +	switch([ev type]) {
    1.17 +	case NSKeyDown:
    1.18 +	case NSKeyUp:
    1.19 +
    1.20  }
    1.21  
    1.22  #endif	/* USE_WSYS_MODULE_COCOA */