Commit e0b3dcd2 authored by David Fuhrmann's avatar David Fuhrmann

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

parent abeb987d
......@@ -977,10 +977,12 @@ static VLCMain *_o_sharedMainInstance = nil;
[[VLCCoreInteraction sharedInstance] backward];
break;
case kRemoteButtonVolume_Plus_Hold:
[[VLCCoreInteraction sharedInstance] volumeUp];
if( p_intf )
var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_VOL_UP );
break;
case kRemoteButtonVolume_Minus_Hold:
[[VLCCoreInteraction sharedInstance] volumeDown];
if( p_intf )
var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_VOL_DOWN );
break;
}
if(b_remote_button_hold)
......@@ -1017,13 +1019,15 @@ static VLCMain *_o_sharedMainInstance = nil;
if (config_GetInt( VLCIntf, "macosx-appleremote-sysvol"))
[NSSound increaseSystemVolume];
else
[[VLCCoreInteraction sharedInstance] volumeUp];
if( p_intf )
var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_VOL_UP );
break;
case kRemoteButtonVolume_Minus:
if (config_GetInt( VLCIntf, "macosx-appleremote-sysvol"))
[NSSound decreaseSystemVolume];
else
[[VLCCoreInteraction sharedInstance] volumeDown];
if( p_intf )
var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_VOL_DOWN );
break;
case kRemoteButtonRight:
[[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