Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
041b88e4
Commit
041b88e4
authored
May 18, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: use CoreInteraction code for the media key triggers
no functional change (cherry picked from commit
8548e873
)
parent
9a59642d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+5
-5
No files found.
modules/gui/macosx/intf.m
View file @
041b88e4
...
...
@@ -839,15 +839,15 @@ static VLCMain *_o_sharedMainInstance = nil;
int
keyRepeat
=
(
keyFlags
&
0x1
);
if
(
keyCode
==
NX_KEYTYPE_PLAY
&&
keyState
==
0
)
var_SetInteger
(
p_intf
->
p_libvlc
,
"key-action"
,
ACTIONID_PLAY_PAUSE
)
;
[[
VLCCoreInteraction
sharedInstance
]
play
]
;
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
)
;
[[
VLCCoreInteraction
sharedInstance
]
next
]
;
else
if
(
keyRepeat
==
1
)
{
var_SetInteger
(
p_intf
->
p_libvlc
,
"key-action"
,
ACTIONID_JUMP_FORWARD_SHORT
)
;
[[
VLCCoreInteraction
sharedInstance
]
forwardShort
]
;
b_mediakeyJustJumped
=
YES
;
[
self
performSelector
:
@selector
(
resetMediaKeyJump
)
withObject:
NULL
...
...
@@ -858,10 +858,10 @@ static VLCMain *_o_sharedMainInstance = nil;
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
)
;
[[
VLCCoreInteraction
sharedInstance
]
previous
]
;
else
if
(
keyRepeat
==
1
)
{
var_SetInteger
(
p_intf
->
p_libvlc
,
"key-action"
,
ACTIONID_JUMP_BACKWARD_SHORT
)
;
[[
VLCCoreInteraction
sharedInstance
]
backwardShort
]
;
b_mediakeyJustJumped
=
YES
;
[
self
performSelector
:
@selector
(
resetMediaKeyJump
)
withObject:
NULL
...
...
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