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 |