21 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
22 |
*/ |
*/ |
23 |
|
|
24 |
|
#include <SDL/SDL_keysym.h> /* FIXME */ |
25 |
|
|
26 |
#include <Foundation/NSObject.h> |
#include <Foundation/NSObject.h> |
27 |
#include <Foundation/NSException.h> |
#include <Foundation/NSException.h> |
28 |
|
#include <AppKit/NSEvent.h> |
29 |
|
|
30 |
#include "Interface/UiImage.h" |
#include "Interface/UiImage.h" |
31 |
#include "Interface/UiButton.h" |
#include "Interface/UiButton.h" |
44 |
} |
} |
45 |
|
|
46 |
- (id) initWithView: (JoinFrame *)view; |
- (id) initWithView: (JoinFrame *)view; |
47 |
|
- (BOOL) keyDown: (NSEvent *)event; |
48 |
- (void) actionPerformed; |
- (void) actionPerformed; |
49 |
|
|
50 |
@end |
@end |
51 |
|
|
52 |
@implementation JoinController |
@implementation JoinController |
71 |
[super dealloc]; |
[super dealloc]; |
72 |
} |
} |
73 |
|
|
74 |
|
- (BOOL) keyDown: (NSEvent *)event |
75 |
|
{ |
76 |
|
NSParameterAssert (event); |
77 |
|
|
78 |
|
if ([event keyCode] == SDLK_ESCAPE) |
79 |
|
{ |
80 |
|
/* FIXME - cleanly exit */ |
81 |
|
exit (0); |
82 |
|
} |
83 |
|
|
84 |
|
return YES; |
85 |
|
} |
86 |
|
|
87 |
- (void) actionPerformed |
- (void) actionPerformed |
88 |
{ |
{ |
89 |
Interface *interface = [_view interface]; |
Interface *interface = [_view interface]; |