Commit c804a4c1 authored by David Fuhrmann's avatar David Fuhrmann

macosx: handle volume apple remote keys as hotkeys, so that osd stuff is shown

(cherry picked from commit e0b3dcd221af12921ef9f8ceeb5e1eab30e6019b)

Conflicts:

	modules/gui/macosx/intf.m
parent 9fe74f87
...@@ -973,10 +973,12 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -973,10 +973,12 @@ static VLCMain *_o_sharedMainInstance = nil;
[[VLCCoreInteraction sharedInstance] backward]; [[VLCCoreInteraction sharedInstance] backward];
break; break;
case kRemoteButtonVolume_Plus_Hold: case kRemoteButtonVolume_Plus_Hold:
[[VLCCoreInteraction sharedInstance] volumeUp]; if( p_intf )
var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_VOL_UP );
break; break;
case kRemoteButtonVolume_Minus_Hold: case kRemoteButtonVolume_Minus_Hold:
[[VLCCoreInteraction sharedInstance] volumeDown]; if( p_intf )
var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_VOL_DOWN );
break; break;
} }
if(b_remote_button_hold) if(b_remote_button_hold)
...@@ -1010,10 +1012,12 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1010,10 +1012,12 @@ static VLCMain *_o_sharedMainInstance = nil;
} }
break; break;
case kRemoteButtonVolume_Plus: case kRemoteButtonVolume_Plus:
[[VLCCoreInteraction sharedInstance] volumeUp]; if( p_intf )
var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_VOL_UP );
break; break;
case kRemoteButtonVolume_Minus: case kRemoteButtonVolume_Minus:
[[VLCCoreInteraction sharedInstance] volumeDown]; if( p_intf )
var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_VOL_DOWN );
break; break;
case kRemoteButtonRight: case kRemoteButtonRight:
[[VLCCoreInteraction sharedInstance] next]; [[VLCCoreInteraction sharedInstance] next];
......
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