Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
e0b3dcd2
Commit
e0b3dcd2
authored
Jul 04, 2012
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: handle volume apple remote keys as hotkeys, so that osd stuff is shown
parent
abeb987d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+8
-4
No files found.
modules/gui/macosx/intf.m
View file @
e0b3dcd2
...
@@ -977,10 +977,12 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -977,10 +977,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
)
...
@@ -1017,13 +1019,15 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -1017,13 +1019,15 @@ static VLCMain *_o_sharedMainInstance = nil;
if
(
config_GetInt
(
VLCIntf
,
"macosx-appleremote-sysvol"
))
if
(
config_GetInt
(
VLCIntf
,
"macosx-appleremote-sysvol"
))
[
NSSound
increaseSystemVolume
];
[
NSSound
increaseSystemVolume
];
else
else
[[
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
:
if
(
config_GetInt
(
VLCIntf
,
"macosx-appleremote-sysvol"
))
if
(
config_GetInt
(
VLCIntf
,
"macosx-appleremote-sysvol"
))
[
NSSound
decreaseSystemVolume
];
[
NSSound
decreaseSystemVolume
];
else
else
[[
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
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment