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
40b04bc1
Commit
40b04bc1
authored
Aug 28, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define brightness keys, zoom keys and missing media keys
parent
fa41853f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
include/vlc_keys.h
include/vlc_keys.h
+18
-0
src/config/keys.c
src/config/keys.c
+18
-0
No files found.
include/vlc_keys.h
View file @
40b04bc1
...
...
@@ -80,6 +80,24 @@
#define KEY_MEDIA_PREV_TRACK 0x004A0000
#define KEY_MEDIA_STOP 0x004B0000
#define KEY_MEDIA_PLAY_PAUSE 0x004C0000
#define KEY_MEDIA_RECORD 0x004D0000
#define KEY_MEDIA_REWIND 0x004E0000
#define KEY_MEDIA_FORWARD 0x004F0000
#define KEY_MEDIA_REPEAT 0x00500000
#define KEY_MEDIA_SHUFFLE 0x00510000
#define KEY_MEDIA_SUBTITLE 0x00520000
#define KEY_MEDIA_AUDIO 0x00530000
#define KEY_MEDIA_ANGLE 0x00540000
#define KEY_MEDIA_TIME 0x00550000
#define KEY_MEDIA_FRAME_PREV 0x00560000
#define KEY_MEDIA_FRAME_NEXT 0x00570000
#define KEY_MEDIA_SELECT 0x00580000
#define KEY_MEDIA_VIEW 0x00590000
#define KEY_MEDIA_MENU 0x005A0000
#define KEY_ZOOM_IN 0x00600000
#define KEY_ZOOM_OUT 0x00610000
#define KEY_BRIGHTNESS_UP 0x00620000
#define KEY_BRIGHTNESS_DOWN 0x00630000
#define KEY_MOUSEWHEELUP 0x00F00000
#define KEY_MOUSEWHEELDOWN 0x00F10000
...
...
src/config/keys.c
View file @
40b04bc1
...
...
@@ -53,6 +53,8 @@ typedef struct key_descriptor_s
static
const
struct
key_descriptor_s
vlc_keys
[]
=
{
/* Alphabetical order */
{
N_
(
"Backspace"
),
KEY_BACKSPACE
},
{
N_
(
"Brightness Down"
),
KEY_BRIGHTNESS_DOWN
},
{
N_
(
"Brightness Up"
),
KEY_BRIGHTNESS_UP
},
{
N_
(
"Browser Back"
),
KEY_BROWSER_BACK
},
{
N_
(
"Browser Favorites"
),
KEY_BROWSER_FAVORITES
},
{
N_
(
"Browser Forward"
),
KEY_BROWSER_FORWARD
},
...
...
@@ -80,10 +82,24 @@ static const struct key_descriptor_s vlc_keys[] =
{
N_
(
"Home"
),
KEY_HOME
},
{
N_
(
"Insert"
),
KEY_INSERT
},
{
N_
(
"Left"
),
KEY_LEFT
},
{
N_
(
"Media Angle"
),
KEY_MEDIA_ANGLE
},
{
N_
(
"Media Audio Track"
),
KEY_MEDIA_AUDIO
},
{
N_
(
"Media Forward"
),
KEY_MEDIA_FORWARD
},
{
N_
(
"Media Menu"
),
KEY_MEDIA_MENU
},
{
N_
(
"Media Next Frame"
),
KEY_MEDIA_FRAME_NEXT
},
{
N_
(
"Media Next Track"
),
KEY_MEDIA_NEXT_TRACK
},
{
N_
(
"Media Play Pause"
),
KEY_MEDIA_PLAY_PAUSE
},
{
N_
(
"Media Prev Frame"
),
KEY_MEDIA_FRAME_PREV
},
{
N_
(
"Media Prev Track"
),
KEY_MEDIA_PREV_TRACK
},
{
N_
(
"Media Record"
),
KEY_MEDIA_RECORD
},
{
N_
(
"Media Repeat"
),
KEY_MEDIA_REPEAT
},
{
N_
(
"Media Rewind"
),
KEY_MEDIA_REWIND
},
{
N_
(
"Media Select"
),
KEY_MEDIA_SELECT
},
{
N_
(
"Media Shuffle"
),
KEY_MEDIA_SHUFFLE
},
{
N_
(
"Media Stop"
),
KEY_MEDIA_STOP
},
{
N_
(
"Media Subtitle"
),
KEY_MEDIA_SUBTITLE
},
{
N_
(
"Media Time"
),
KEY_MEDIA_TIME
},
{
N_
(
"Media View"
),
KEY_MEDIA_VIEW
},
{
N_
(
"Menu"
),
KEY_MENU
},
{
N_
(
"Mouse Wheel Down"
),
KEY_MOUSEWHEELDOWN
},
{
N_
(
"Mouse Wheel Left"
),
KEY_MOUSEWHEELLEFT
},
...
...
@@ -99,6 +115,8 @@ static const struct key_descriptor_s vlc_keys[] =
{
N_
(
"Volume Down"
),
KEY_VOLUME_DOWN
},
{
N_
(
"Volume Mute"
),
KEY_VOLUME_MUTE
},
{
N_
(
"Volume Up"
),
KEY_VOLUME_UP
},
{
N_
(
"Zoom In"
),
KEY_ZOOM_IN
},
{
N_
(
"Zoom Out"
),
KEY_ZOOM_OUT
},
};
#define KEYS_COUNT (sizeof(vlc_keys)/sizeof(vlc_keys[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