/[hegemonie]/hegemonie/Source/JoinFrame.m
ViewVC logotype

Diff of /hegemonie/Source/JoinFrame.m

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by zaral, Thu Aug 7 08:32:56 2003 UTC revision 1.6 by dam, Fri Aug 15 21:39:02 2003 UTC
# Line 21  Line 21 
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"
# Line 41  Line 44 
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
# Line 66  Line 71 
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];

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26