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
2baabf9d
Commit
2baabf9d
authored
Apr 11, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: added media key support for keyboards by other manufactorers than Apple such as Cherry
(cherry picked from commit
d082caf8
)
parent
067cd23c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
NEWS
NEWS
+4
-1
modules/gui/macosx/SPMediaKeyTap.m
modules/gui/macosx/SPMediaKeyTap.m
+1
-1
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+2
-2
No files found.
NEWS
View file @
2baabf9d
...
...
@@ -37,13 +37,16 @@ Mac OS X:
the persistant media library
* Enable import of playlist items taken from the service discovery modules
to the media library or the temporary playlist
* Added media key support for keyboards by other manufacturers than Apple
This fix was facilitated through a hardware donation by ZF Friedrichshafen AG
manufacturing keyboards under the brand "Cherry".
* Fullscreen fixes and video output improvements
* Keep Aspect Ratio when resizing is back
* Added controls to manipulate the Subtitles Duration to the Track
Synchronization panel
* Hidden items in the sidebar are being retained for the next launch now
* Fix crash when trying to open an Audio CD by drag & drop
* Improve reliability when opening DVDs or B
R
s by drag & drop
* Improve reliability when opening DVDs or B
D
s by drag & drop
* Fix crash on exit
* Fix crash when mounting a device with multiple logical volumes while
VLC is running
...
...
modules/gui/macosx/SPMediaKeyTap.m
View file @
2baabf9d
...
...
@@ -183,7 +183,7 @@ static CGEventRef tapEventCallback2(CGEventTapProxy proxy, CGEventType type, CGE
return
event
;
int
keyCode
=
(([
nsEvent
data1
]
&
0xFFFF0000
)
>>
16
);
if
(
keyCode
!=
NX_KEYTYPE_PLAY
&&
keyCode
!=
NX_KEYTYPE_FAST
&&
keyCode
!=
NX_KEYTYPE_REWIND
)
if
(
keyCode
!=
NX_KEYTYPE_PLAY
&&
keyCode
!=
NX_KEYTYPE_FAST
&&
keyCode
!=
NX_KEYTYPE_REWIND
&&
keyCode
!=
NX_KEYTYPE_PREVIOUS
&&
keyCode
!=
NX_KEYTYPE_NEXT
)
return
event
;
if
(
!
[
self
shouldInterceptMediaKeyEvents
])
...
...
modules/gui/macosx/intf.m
View file @
2baabf9d
...
...
@@ -823,7 +823,7 @@ static VLCMain *_o_sharedMainInstance = nil;
if
(
keyCode
==
NX_KEYTYPE_PLAY
&&
keyState
==
0
)
var_SetInteger
(
p_intf
->
p_libvlc
,
"key-action"
,
ACTIONID_PLAY_PAUSE
);
if
(
keyCode
==
NX_KEYTYPE_FAST
&&
!
b_mediakeyJustJumped
)
if
(
(
keyCode
==
NX_KEYTYPE_FAST
||
keyCode
==
NX_KEYTYPE_NEXT
)
&&
!
b_mediakeyJustJumped
)
{
if
(
keyState
==
0
&&
keyRepeat
==
0
)
var_SetInteger
(
p_intf
->
p_libvlc
,
"key-action"
,
ACTIONID_NEXT
);
...
...
@@ -837,7 +837,7 @@ static VLCMain *_o_sharedMainInstance = nil;
}
}
if
(
keyCode
==
NX_KEYTYPE_REWIND
&&
!
b_mediakeyJustJumped
)
if
(
(
keyCode
==
NX_KEYTYPE_REWIND
||
keyCode
==
NX_KEYTYPE_PREVIOUS
)
&&
!
b_mediakeyJustJumped
)
{
if
(
keyState
==
0
&&
keyRepeat
==
0
)
var_SetInteger
(
p_intf
->
p_libvlc
,
"key-action"
,
ACTIONID_PREV
);
...
...
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