/[hegemonie]/hegemonie/Interface/UiSdl.m
ViewVC logotype

Diff of /hegemonie/Interface/UiSdl.m

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

revision 1.9 by dam, Tue Jul 29 10:07:07 2003 UTC revision 1.10 by zaral, Thu Aug 7 08:43:30 2003 UTC
# Line 133  static NSEvent * Line 133  static NSEvent *
133  _key_create_event (NSEventType type,  _key_create_event (NSEventType type,
134                     unsigned flags,                     unsigned flags,
135                     NSPoint location,                     NSPoint location,
136                     unsigned short keysym)                     unsigned short keySym)
137  {  {
138      const unichar character = keySym;
139    
140    return  [NSEvent keyEventWithType: type    return  [NSEvent keyEventWithType: type
141                             location: location                             location: location
142                        modifierFlags: flags                        modifierFlags: flags
143                            timestamp: 0                            timestamp: 0
144                         windowNumber: 0                         windowNumber: 0
145                              context: nil                              context: nil
146                           characters: nil                           characters: [NSString stringWithCharacters: &character
147          charactersIgnoringModifiers: nil                                                               length: 1]
148                            isARepeat: NO          charactersIgnoringModifiers: nil
149                              keyCode: keysym];                            isARepeat: NO
150                                keyCode: keySym];
151  }  }
152    
153  - (void) _keyEventWithEvent: (SDL_Event) sdlEvent  - (void) _keyEventWithEvent: (SDL_Event) sdlEvent

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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