[vlc-commits] macosx: fixed the Apple Remote's switch cookie on Snow Leopard
Felix Paul Kühne
git at videolan.org
Mon Apr 4 17:44:57 CEST 2011
vlc/vlc-1.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Apr 4 17:44:51 2011 +0200| [1200d9bab60ff3e1dcadc75f289f59059e1bb345] | committer: Felix Paul Kühne
macosx: fixed the Apple Remote's switch cookie on Snow Leopard
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=1200d9bab60ff3e1dcadc75f289f59059e1bb345
---
modules/gui/macosx/AppleRemote.m | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/gui/macosx/AppleRemote.m b/modules/gui/macosx/AppleRemote.m
index bf00140..418cc08 100644
--- a/modules/gui/macosx/AppleRemote.m
+++ b/modules/gui/macosx/AppleRemote.m
@@ -124,10 +124,11 @@ const NSTimeInterval HOLD_RECOGNITION_TIME_INTERVAL=0.4;
[cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonLeft_Hold] forKey:@"33_21_20_13_12_2_"];
[cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonMenu_Hold] forKey:@"33_21_20_2_33_21_20_2_"];
[cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonPlay_Sleep] forKey:@"37_33_21_20_2_37_33_21_20_2_"];
- [cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteControl_Switched] forKey:@"19_"];
+ [cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteControl_Switched] forKey:@"42_33_23_21_20_2_33_23_21_20_2_"];
+ [cookieToButtonMapping setObject:[NSNumber numberWithInt:k2009RemoteButtonSwitched] forKey:@"42_33_21_20_8_2_33_21_20_8_2_"];
[cookieToButtonMapping setObject:[NSNumber numberWithInt:k2009RemoteButtonPlay] forKey:@"33_21_20_8_2_33_21_20_8_2_"];
[cookieToButtonMapping setObject:[NSNumber numberWithInt:k2009RemoteButtonFullscreen] forKey:@"33_21_20_3_2_33_21_20_3_2_"];
- switchCookie = @"19_";
+ switchCookie = @"42_33_23_21_20_2_33_23_21_20_2_";
}
}
More information about the vlc-commits
mailing list