Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
0435ea9a
Commit
0435ea9a
authored
Feb 24, 2007
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Untested new hotkeys:
'r' -> toggle random 'L' -> toggle normal / repeat one / loop
parent
ee0cac1e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
0 deletions
+47
-0
include/vlc_keys.h
include/vlc_keys.h
+2
-0
modules/control/hotkeys.c
modules/control/hotkeys.c
+29
-0
src/libvlc-module.c
src/libvlc-module.c
+16
-0
No files found.
include/vlc_keys.h
View file @
0435ea9a
...
...
@@ -303,3 +303,5 @@ static inline int StringToKey( char *psz_key )
#define ACTIONID_CROP_RIGHT 78
#define ACTIONID_UNCROP_RIGHT 79
#define ACTIONID_DUMP 80
#define ACTIONID_RANDOM 81
#define ACTIONID_LOOP 82
modules/control/hotkeys.c
View file @
0435ea9a
...
...
@@ -297,6 +297,35 @@ static void Run( intf_thread_t *p_intf )
var_Set
(
p_playlist
,
"fullscreen"
,
val
);
}
}
else
if
(
i_action
==
ACTIONID_LOOP
)
{
/* Toggle Normal -> Loop -> Repeat -> Normal ... */
vlc_value_t
val2
;
var_Get
(
p_playlist
,
"loop"
,
&
val
);
var_Get
(
p_playlist
,
"repeat"
,
&
val2
);
if
(
val2
.
b_bool
==
VLC_TRUE
)
{
val
.
b_bool
=
VLC_FALSE
;
val2
.
b_bool
=
VLC_FALSE
;
}
else
if
(
val
.
b_bool
==
VLC_TRUE
)
{
val
.
b_bool
=
VLC_FALSE
;
val2
.
b_bool
=
VLC_TRUE
;
}
else
{
val
.
b_bool
=
VLC_TRUE
;
}
var_Set
(
p_playlist
,
"loop"
,
val
);
var_Set
(
p_playlist
,
"repeat"
,
val2
);
}
else
if
(
i_action
==
ACTIONID_RANDOM
)
{
var_Get
(
p_playlist
,
"random"
,
&
val
);
val
.
b_bool
=
!
val
.
b_bool
;
var_Set
(
p_playlist
,
"random"
,
val
);
}
else
if
(
i_action
==
ACTIONID_PLAY_PAUSE
)
{
val
.
i_int
=
PLAYING_S
;
...
...
src/libvlc-module.c
View file @
0435ea9a
...
...
@@ -1173,6 +1173,12 @@ static const char *ppsz_pltree_descriptions[] = { N_("Default"), N_("Always"), N
#define DUMP_KEY_TEXT N_("Dump")
#define DUMP_KEY_LONGTEXT N_("Media dump access filter trigger.")
#define LOOP_KEY_TEXT N_("Normal/Repeat/Loop")
#define LOOP_KEY_LONGTEXT N_("Toggle Normal/Repeat/Loop playlist modes")
#define RANDOM_KEY_TEXT N_("Random")
#define RANDOM_KEY_LONGTEXT N_("Toggle random playlist playback")
#define ZOOM_KEY_TEXT N_("Zoom")
#define ZOOM_KEY_LONGTEXT N_("Zoom")
...
...
@@ -1841,6 +1847,8 @@ vlc_module_begin();
# define KEY_SNAPSHOT KEY_MODIFIER_COMMAND|KEY_MODIFIER_ALT|'s'
# define KEY_ZOOM 'z'
# define KEY_UNZOOM KEY_MODIFIER_SHIFT|'z'
# define KEY_RANDOM 'r'
# define KEY_LOOP KEY_MODIFIER_SHIFT|'l'
# define KEY_CROP_TOP KEY_MODIFIER_ALT|'i'
# define KEY_UNCROP_TOP KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|'i'
...
...
@@ -1908,6 +1916,8 @@ vlc_module_begin();
# define KEY_SUBDELAY_DOWN KEY_MODIFIER_CTRL|'j'
# define KEY_AUDIODELAY_UP KEY_MODIFIER_CTRL|'k'
# define KEY_AUDIODELAY_DOWN KEY_MODIFIER_CTRL|'l'
# define KEY_RANDOM 'r'
# define KEY_LOOP KEY_MODIFIER_SHIFT|'l'
# define KEY_AUDIO_TRACK 'l'
# define KEY_SUBTITLE_TRACK 'k'
...
...
@@ -2078,6 +2088,10 @@ vlc_module_begin();
CROP_RIGHT_KEY_TEXT
,
CROP_RIGHT_KEY_LONGTEXT
,
VLC_TRUE
);
add_key
(
"key-uncrop-right"
,
KEY_UNCROP_RIGHT
,
NULL
,
UNCROP_RIGHT_KEY_TEXT
,
UNCROP_RIGHT_KEY_LONGTEXT
,
VLC_TRUE
);
add_key
(
"key-random"
,
KEY_RANDOM
,
NULL
,
RANDOM_KEY_TEXT
,
RANDOM_KEY_LONGTEXT
,
VLC_FALSE
);
add_key
(
"key-loop"
,
KEY_LOOP
,
NULL
,
LOOP_KEY_TEXT
,
LOOP_KEY_LONGTEXT
,
VLC_FALSE
);
set_section
(
N_
(
"Jump sizes"
),
NULL
);
add_integer
(
"extrashort-jump-size"
,
3
,
NULL
,
JIEXTRASHORT_TEXT
,
...
...
@@ -2316,6 +2330,8 @@ const struct hotkey libvlc_hotkeys[] =
{
"key-history-forward"
,
ACTIONID_HISTORY_FORWARD
,
0
,
0
,
0
,
0
},
{
"key-record"
,
ACTIONID_RECORD
,
0
,
0
,
0
,
0
},
{
"key-dump"
,
ACTIONID_DUMP
,
0
,
0
,
0
,
0
},
{
"key-random"
,
ACTIONID_RANDOM
,
0
,
0
,
0
,
0
},
{
"key-loop"
,
ACTIONID_LOOP
,
0
,
0
,
0
,
0
},
{
NULL
,
0
,
0
,
0
,
0
,
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