[vlc-commits] macosx/Apple Remote: fix play button cookie
Felix Paul Kühne
git at videolan.org
Sun Oct 27 18:16:38 CET 2019
vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Sun Oct 27 18:15:32 2019 +0100| [229f99c2f3eb45f129fbd59088c74d76548497c4] | committer: Felix Paul Kühne
macosx/Apple Remote: fix play button cookie
The 2005 white-plastic Apple Remote uses a different play button cookie than the 2009 aluminium version.
This patch fixes control by both devices.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=229f99c2f3eb45f129fbd59088c74d76548497c4
---
modules/gui/macosx/imported/AppleRemote/AppleRemote.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/gui/macosx/imported/AppleRemote/AppleRemote.m b/modules/gui/macosx/imported/AppleRemote/AppleRemote.m
index 44d22c665e..168654b40c 100644
--- a/modules/gui/macosx/imported/AppleRemote/AppleRemote.m
+++ b/modules/gui/macosx/imported/AppleRemote/AppleRemote.m
@@ -78,7 +78,7 @@ const NSTimeInterval HOLD_RECOGNITION_TIME_INTERVAL=0.4;
[mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonVolume_Plus] forKey:@"35_23_22_17_14_4_3_35_23_22_4_3_"];
[mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonVolume_Minus] forKey:@"35_23_22_18_14_4_3_35_23_22_4_3_"];
[mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonMenu] forKey:@"35_24_23_22_4_3_35_24_23_22_4_3_"];
- [mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonPlay] forKey:@"35_23_22_10_4_3_35_23_22_10_4_3_"];
+ [mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonPlay] forKey:@"35_25_23_22_4_3_35_25_23_22_4_3_"];
[mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonRight] forKey:@"35_26_23_22_4_3_35_26_23_22_4_3_"];
[mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonLeft] forKey:@"35_27_23_22_4_3_35_27_23_22_4_3_"];
[mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonRight_Hold] forKey:@"35_23_22_16_14_4_3_"];
More information about the vlc-commits
mailing list