mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-01 15:16:22 +00:00
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:
parent
f1a3bc1397
commit
6da0386bd6
2 changed files with 73 additions and 5 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue