diff options
author | ericb2 <ericb2@apache.org> | 2011-10-30 22:57:34 +0000 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2011-12-05 13:00:11 +0100 |
commit | aaf218d025326ef54dcbc724b33666d7ddcff187 (patch) | |
tree | 848235db0913feaa36660d69be63ef2a98c32974 /apple_remote | |
parent | b50bb4d3058456efeaaeee336f491d6447716845 (diff) |
Propragating the modif in the implementation (HIDRemoteControlDevice.m)
* found under MIT-style at svn rev 1195272 (http://svn.apache.org/viewvc?view=revision&revision=1195272)
Diffstat (limited to 'apple_remote')
-rw-r--r-- | apple_remote/HIDRemoteControlDevice.m | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/apple_remote/HIDRemoteControlDevice.m b/apple_remote/HIDRemoteControlDevice.m index 94215900717b..2cd7506e60d3 100644 --- a/apple_remote/HIDRemoteControlDevice.m +++ b/apple_remote/HIDRemoteControlDevice.m @@ -281,7 +281,17 @@ cleanup: NSNumber* buttonId = [[self cookieToButtonMapping] objectForKey: cookieString]; if (buttonId != nil) { - [self sendRemoteButtonEvent: [buttonId intValue] pressedDown: (sumOfValues>0)]; + switch ( (int)buttonId ) + { + case kMetallicRemote2009ButtonPlay: + case kMetallicRemote2009ButtonMiddlePlay: + buttonId = [NSNumber numberWithInt:kRemoteButtonPlay]; + break; + default: + break; + } + [self sendRemoteButtonEvent: [buttonId intValue] pressedDown: (sumOfValues>0)]; + } else { // let's see if a number of events are stored in the cookie string. this does // happen when the main thread is too busy to handle all incoming events in time. |