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
321e04ca
Commit
321e04ca
authored
Oct 13, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added hotkey code for input "frame-next".
No default key is assigned.
parent
c136bb81
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
include/vlc_keys.h
include/vlc_keys.h
+1
-0
modules/control/hotkeys.c
modules/control/hotkeys.c
+6
-0
src/libvlc-module.c
src/libvlc-module.c
+8
-0
No files found.
include/vlc_keys.h
View file @
321e04ca
...
...
@@ -261,6 +261,7 @@ typedef enum vlc_key {
ACTIONID_JUMP_FORWARD_MEDIUM
,
ACTIONID_JUMP_BACKWARD_LONG
,
ACTIONID_JUMP_FORWARD_LONG
,
ACTIONID_FRAME_NEXT
,
ACTIONID_POSITION
,
ACTIONID_VOL_MUTE
,
/* let ACTIONID_SET_BOOMARK* and ACTIONID_PLAY_BOOKMARK* be contiguous */
...
...
modules/control/hotkeys.c
View file @
321e04ca
...
...
@@ -699,6 +699,12 @@ static void Run( intf_thread_t *p_intf )
{
playlist_Stop
(
p_playlist
);
}
else
if
(
i_action
==
ACTIONID_FRAME_NEXT
)
{
var_SetVoid
(
p_input
,
"frame-next"
);
vout_OSDMessage
(
VLC_OBJECT
(
p_input
),
DEFAULT_CHAN
,
_
(
"Next frame"
)
);
}
else
if
(
i_action
==
ACTIONID_FASTER
)
{
var_SetVoid
(
p_input
,
"rate-faster"
);
...
...
src/libvlc-module.c
View file @
321e04ca
...
...
@@ -1218,6 +1218,9 @@ static const char *const ppsz_albumart_descriptions[] =
#define JFLONG_KEY_TEXT N_("Long forward jump")
#define JFLONG_KEY_LONGTEXT \
N_("Select the hotkey to make a long forward jump.")
#define FRAME_NEXT_KEY_TEXT N_("Next frame")
#define FRAME_NEXT_KEY_LONGTEXT \
N_("Select the hotkey to got to the next video frame.")
#define JIEXTRASHORT_TEXT N_("Very short jump length")
#define JIEXTRASHORT_LONGTEXT N_("Very short jump length, in seconds.")
...
...
@@ -2073,6 +2076,7 @@ vlc_module_begin();
# define KEY_JUMP_PMEDIUM KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|KEY_RIGHT
# define KEY_JUMP_MLONG KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|KEY_MODIFIER_ALT|KEY_LEFT
# define KEY_JUMP_PLONG KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|KEY_MODIFIER_ALT|KEY_RIGHT
# define KEY_FRAME_NEXT KEY_UNSET
# define KEY_NAV_ACTIVATE KEY_ENTER
# define KEY_NAV_UP KEY_UP
# define KEY_NAV_DOWN KEY_DOWN
...
...
@@ -2180,6 +2184,7 @@ vlc_module_begin();
# define KEY_JUMP_PMEDIUM KEY_MODIFIER_CTRL|KEY_RIGHT
# define KEY_JUMP_MLONG KEY_MODIFIER_CTRL|KEY_MODIFIER_ALT|KEY_LEFT
# define KEY_JUMP_PLONG KEY_MODIFIER_CTRL|KEY_MODIFIER_ALT|KEY_RIGHT
# define KEY_FRAME_NEXT KEY_UNSET
# define KEY_NAV_ACTIVATE KEY_ENTER
# define KEY_NAV_UP KEY_UP
# define KEY_NAV_DOWN KEY_DOWN
...
...
@@ -2308,6 +2313,8 @@ vlc_module_begin();
JBLONG_KEY_LONGTEXT
,
false
);
add_key
(
"key-jump+long"
,
KEY_JUMP_PLONG
,
NULL
,
JFLONG_KEY_TEXT
,
JFLONG_KEY_LONGTEXT
,
false
);
add_key
(
"key-frame-next"
,
KEY_FRAME_NEXT
,
NULL
,
FRAME_NEXT_KEY_TEXT
,
FRAME_NEXT_KEY_LONGTEXT
,
false
);
add_key
(
"key-nav-activate"
,
KEY_NAV_ACTIVATE
,
NULL
,
NAV_ACTIVATE_KEY_TEXT
,
NAV_ACTIVATE_KEY_LONGTEXT
,
true
);
add_key
(
"key-nav-up"
,
KEY_NAV_UP
,
NULL
,
NAV_UP_KEY_TEXT
,
...
...
@@ -2613,6 +2620,7 @@ const struct hotkey libvlc_hotkeys[] =
{
"key-jump+medium"
,
ACTIONID_JUMP_FORWARD_MEDIUM
,
0
,
},
{
"key-jump-long"
,
ACTIONID_JUMP_BACKWARD_LONG
,
0
,
},
{
"key-jump+long"
,
ACTIONID_JUMP_FORWARD_LONG
,
0
,
},
{
"key-frame-next"
,
ACTIONID_FRAME_NEXT
,
0
,
},
{
"key-prev"
,
ACTIONID_PREV
,
0
,
},
{
"key-next"
,
ACTIONID_NEXT
,
0
,
},
{
"key-faster"
,
ACTIONID_FASTER
,
0
,
},
...
...
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