Skip to content

Commit

Permalink
Merge pull request #2357 from stuartcarnie/vice
Browse files Browse the repository at this point in the history
Commodore 64: pass keyboard event keyCode
  • Loading branch information
clobber committed Jan 16, 2016
2 parents dbfa2e3 + f159ee0 commit 2c085e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenEmu/Commodore 64/OEC64SystemResponder.m
Expand Up @@ -38,13 +38,13 @@ + (Protocol *)gameSystemResponderClientProtocol;
- (void)HIDKeyDown:(OEHIDEvent *)theEvent
{
[super HIDKeyDown:theEvent];
[[self client] keyDown:[theEvent keycode] characters:[theEvent characters] charactersIgnoringModifiers:[theEvent charactersIgnoringModifiers] flags:[theEvent modifierFlags]];
[[self client] keyDown:[[theEvent keyboardEvent] keyCode] characters:[theEvent characters] charactersIgnoringModifiers:[theEvent charactersIgnoringModifiers] flags:[theEvent modifierFlags]];
}

- (void)HIDKeyUp:(OEHIDEvent *)theEvent
{
[super HIDKeyUp:theEvent];
[[self client] keyUp:[theEvent keycode] characters:[theEvent characters] charactersIgnoringModifiers:[theEvent charactersIgnoringModifiers] flags:[theEvent modifierFlags]];
[[self client] keyUp:[[theEvent keyboardEvent] keyCode] characters:[theEvent characters] charactersIgnoringModifiers:[theEvent charactersIgnoringModifiers] flags:[theEvent modifierFlags]];
}

- (void)pressEmulatorKey:(OESystemKey *)aKey
Expand Down

0 comments on commit 2c085e5

Please sign in to comment.