Commit 6e92f783 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: re-enable AppleRemote support for 64bit builds

parent 423b1133
...@@ -334,11 +334,9 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -334,11 +334,9 @@ static VLCMain *_o_sharedMainInstance = nil;
i_lastShownVolume = -1; i_lastShownVolume = -1;
#ifndef __x86_64__
o_remote = [[AppleRemote alloc] init]; o_remote = [[AppleRemote alloc] init];
[o_remote setClickCountEnabledButtons: kRemoteButtonPlay]; [o_remote setClickCountEnabledButtons: kRemoteButtonPlay];
[o_remote setDelegate: _o_sharedMainInstance]; [o_remote setDelegate: _o_sharedMainInstance];
#endif
o_eyetv = [[VLCEyeTVController alloc] init]; o_eyetv = [[VLCEyeTVController alloc] init];
...@@ -1014,16 +1012,12 @@ static NSString * VLCToolbarMediaControl = @"VLCToolbarMediaControl"; ...@@ -1014,16 +1012,12 @@ static NSString * VLCToolbarMediaControl = @"VLCToolbarMediaControl";
- (void)applicationDidBecomeActive:(NSNotification *)aNotification - (void)applicationDidBecomeActive:(NSNotification *)aNotification
{ {
if( !p_intf ) return; if( !p_intf ) return;
#ifndef __x86_64__
[o_remote startListening: self]; [o_remote startListening: self];
#endif
} }
- (void)applicationDidResignActive:(NSNotification *)aNotification - (void)applicationDidResignActive:(NSNotification *)aNotification
{ {
if( !p_intf ) return; if( !p_intf ) return;
#ifndef __x86_64__
[o_remote stopListening: self]; [o_remote stopListening: self];
#endif
} }
/* Triggered when the computer goes to sleep */ /* Triggered when the computer goes to sleep */
......
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