Kaydet (Commit) aaf218d0 authored tarafından ericb2's avatar ericb2 Kaydeden (comit) Thorsten Behrens

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)
üst b50bb4d3
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment