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
c185d2a8
Commit
c185d2a8
authored
Jun 05, 2009
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert some uses of key-pressed to key-action.
parent
89db25d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
13 deletions
+5
-13
modules/control/rc.c
modules/control/rc.c
+4
-10
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+1
-3
No files found.
modules/control/rc.c
View file @
c185d2a8
...
...
@@ -1059,8 +1059,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
/* Parse commands that only require an input */
if
(
!
strcmp
(
psz_cmd
,
"pause"
)
)
{
val
.
i_int
=
config_GetInt
(
p_intf
,
"key-play-pause"
);
var_Set
(
p_intf
->
p_libvlc
,
"key-pressed"
,
val
);
var_SetInteger
(
p_intf
->
p_libvlc
,
"key-action"
,
ACTIONID_PLAY_PAUSE
);
vlc_object_release
(
p_input
);
return
VLC_SUCCESS
;
}
...
...
@@ -1090,8 +1089,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
}
else
{
val
.
i_int
=
config_GetInt
(
p_intf
,
"key-jump+extrashort"
);
var_Set
(
p_intf
->
p_libvlc
,
"key-pressed"
,
val
);
var_SetInteger
(
p_intf
->
p_libvlc
,
"key-action"
,
ACTIONID_JUMP_FORWARD_EXTRASHORT
);
}
vlc_object_release
(
p_input
);
return
VLC_SUCCESS
;
...
...
@@ -1106,8 +1104,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
}
else
{
val
.
i_int
=
config_GetInt
(
p_intf
,
"key-jump-extrashort"
);
var_Set
(
p_intf
->
p_libvlc
,
"key-pressed"
,
val
);
var_SetInteger
(
p_intf
->
p_libvlc
,
"key-action"
,
ACTIONID_JUMP_BACKWARD_EXTRASHORT
);
}
vlc_object_release
(
p_input
);
return
VLC_SUCCESS
;
...
...
@@ -1569,10 +1566,7 @@ static int Volume( vlc_object_t *p_this, char const *psz_cmd,
{
if
(
i_volume
==
AOUT_VOLUME_MIN
)
{
vlc_value_t
keyval
;
keyval
.
i_int
=
config_GetInt
(
p_intf
,
"key-vol-mute"
);
var_Set
(
p_intf
->
p_libvlc
,
"key-pressed"
,
keyval
);
var_SetInteger
(
p_intf
->
p_libvlc
,
"key-action"
,
ACTIONID_VOL_MUTE
);
}
i_error
=
aout_VolumeSet
(
p_this
,
i_volume
);
osd_Volume
(
p_this
);
...
...
modules/gui/macosx/intf.m
View file @
c185d2a8
...
...
@@ -1020,9 +1020,7 @@ static NSString * VLCToolbarMediaControl = @"VLCToolbarMediaControl";
/* Pause */
if
(
p_intf
->
p_sys
->
i_play_status
==
PLAYING_S
)
{
vlc_value_t
val
;
val
.
i_int
=
config_GetInt
(
p_intf
,
"key-play-pause"
);
var_Set
(
p_intf
->
p_libvlc
,
"key-pressed"
,
val
);
var_SetInteger
(
p_intf
->
p_libvlc
,
"key-action"
,
ACTIONID_PLAY_PAUSE
);
}
}
...
...
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