summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apple_remote/HIDRemoteControlDevice.m12
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.