Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoaevents.m @ 1962:c92e5f3e68d9
Hack to stop the beeping
Fixed keyboard window focus.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 30 Jul 2006 08:09:20 +0000 |
parents | 25d6537feea4 |
children | 79c1bd651f04 |
comparison
equal
deleted
inserted
replaced
1961:f42f10fc309e | 1962:c92e5f3e68d9 |
---|---|
172 switch ([event type]) { | 172 switch ([event type]) { |
173 case NSKeyDown: | 173 case NSKeyDown: |
174 case NSKeyUp: | 174 case NSKeyUp: |
175 case NSFlagsChanged: | 175 case NSFlagsChanged: |
176 Cocoa_HandleKeyEvent(_this, event); | 176 Cocoa_HandleKeyEvent(_this, event); |
177 /* Fall through to pass event to NSApp */ | 177 /* Fall through to pass event to NSApp; er, nevermind... */ |
178 /* FIXME: Find a way to stop the beeping, using delegate */ | |
179 break; | |
178 default: | 180 default: |
179 [NSApp sendEvent:event]; | 181 [NSApp sendEvent:event]; |
180 break; | 182 break; |
181 } | 183 } |
182 } | 184 } |