now we can play with keyboard on osx, enjoy

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1862 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
tmator
2009-01-13 14:30:05 +00:00
parent f1a3bc1397
commit 6da0386bd6
2 changed files with 73 additions and 5 deletions

View File

@ -72,10 +72,8 @@ void cocoaSendEvent(NSEvent *event)
if ( event != nil ) {
switch ([event type]) {
case NSKeyDown:
cocoaKeyCode(event);
break;
case NSKeyUp:
cocoaKeyCode(nil);
cocoaKeyCode(event);
break;
default:
[NSApp sendEvent:event];