Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a0cb1c29
Commit
a0cb1c29
authored
Jan 31, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hotkeys: move mouse wheel setting to core with other hotkey stuff
parent
6ba340ce
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
modules/control/hotkeys.c
modules/control/hotkeys.c
+0
-18
src/libvlc-module.c
src/libvlc-module.c
+18
-0
No files found.
modules/control/hotkeys.c
View file @
a0cb1c29
...
...
@@ -84,18 +84,6 @@ static void ClearChannels ( intf_thread_t *, vout_thread_t * );
* Module descriptor
*****************************************************************************/
enum
{
MOUSEWHEEL_VOLUME
,
MOUSEWHEEL_POSITION
,
NO_MOUSEWHEEL
,
};
static
const
int
i_mode_list
[]
=
{
MOUSEWHEEL_VOLUME
,
MOUSEWHEEL_POSITION
,
NO_MOUSEWHEEL
};
static
const
char
*
const
psz_mode_list_text
[]
=
{
N_
(
"Volume Control"
),
N_
(
"Position Control"
),
N_
(
"Ignore"
)
};
vlc_module_begin
()
set_shortname
(
N_
(
"Hotkeys"
)
)
set_description
(
N_
(
"Hotkeys management interface"
)
)
...
...
@@ -104,12 +92,6 @@ vlc_module_begin ()
set_category
(
CAT_INTERFACE
)
set_subcategory
(
SUBCAT_INTERFACE_HOTKEYS
)
add_integer
(
"hotkeys-mousewheel-mode"
,
MOUSEWHEEL_VOLUME
,
N_
(
"MouseWheel up-down axis Control"
),
N_
(
"The MouseWheel up-down (vertical) axis can control volume, position or "
"mousewheel event can be ignored"
),
false
)
change_integer_list
(
i_mode_list
,
psz_mode_list_text
)
vlc_module_end
()
/*****************************************************************************
...
...
src/libvlc-module.c
View file @
a0cb1c29
...
...
@@ -1202,6 +1202,20 @@ static const char *const ppsz_albumart_descriptions[] =
#define HOTKEY_CAT_LONGTEXT N_( "These settings are the global VLC key " \
"bindings, known as \"hotkeys\"." )
enum
{
MOUSEWHEEL_VOLUME
,
MOUSEWHEEL_POSITION
,
NO_MOUSEWHEEL
,
};
static
const
int
mouse_wheel_values
[]
=
{
2
,
0
,
1
};
static
const
char
*
const
mouse_wheel_texts
[]
=
{
N_
(
"Ignore"
),
N_
(
"Volume Control"
),
N_
(
"Position Control"
)
};
#define MOUSE_WHEEL_MODE_TEXT N_("MouseWheel up-down axis Control")
#define MOUSE_WHEEL_MODE_LONGTEXT N_( \
"The MouseWheel up-down (vertical) axis can control volume, position or " \
"mousewheel event can be ignored")
#define TOGGLE_FULLSCREEN_KEY_TEXT N_("Fullscreen")
#define TOGGLE_FULLSCREEN_KEY_LONGTEXT N_("Select the hotkey to use to swap fullscreen state.")
#define LEAVE_FULLSCREEN_KEY_TEXT N_("Exit fullscreen")
...
...
@@ -2104,6 +2118,10 @@ vlc_module_begin ()
set_subcategory
(
SUBCAT_INTERFACE_HOTKEYS
)
add_category_hint
(
N_
(
"Hot keys"
),
HOTKEY_CAT_LONGTEXT
,
false
)
add_integer
(
"hotkeys-mousewheel-mode"
,
0
,
MOUSE_WHEEL_MODE_TEXT
,
MOUSE_WHEEL_MODE_LONGTEXT
,
false
)
change_integer_list
(
mouse_wheel_values
,
mouse_wheel_texts
)
#if defined(__APPLE__)
/* Don't use the following combo's */
...
...
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