From aaf218d025326ef54dcbc724b33666d7ddcff187 Mon Sep 17 00:00:00 2001 From: ericb2 Date: Sun, 30 Oct 2011 22:57:34 +0000 Subject: 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) --- apple_remote/HIDRemoteControlDevice.m | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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. -- cgit