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
1b3b2112
Commit
1b3b2112
authored
Feb 10, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some documentation
parent
900d028c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/config/keys.c
src/config/keys.c
+10
-1
No files found.
src/config/keys.c
View file @
1b3b2112
...
@@ -176,6 +176,11 @@ uint_fast32_t ConfigStringToKey (const char *name)
...
@@ -176,6 +176,11 @@ uint_fast32_t ConfigStringToKey (const char *name)
return
(
vlc_towc
(
name
,
&
cp
)
>
0
)
?
(
mods
|
cp
)
:
KEY_UNSET
;
return
(
vlc_towc
(
name
,
&
cp
)
>
0
)
?
(
mods
|
cp
)
:
KEY_UNSET
;
}
}
/**
* Format a human-readable and unique representation of a VLC key code
* (including modifiers).
* @return a heap-allocated string, or NULL on error.
*/
char
*
vlc_keycode2str
(
uint_fast32_t
code
)
char
*
vlc_keycode2str
(
uint_fast32_t
code
)
{
{
char
*
str
,
buf
[
5
];
char
*
str
,
buf
[
5
];
...
@@ -210,7 +215,7 @@ static int keycmp (const void *a, const void *b)
...
@@ -210,7 +215,7 @@ static int keycmp (const void *a, const void *b)
}
}
/**
/**
* Get the action associated with a VLC key code, if any.
* Get the action
ID
associated with a VLC key code, if any.
*/
*/
static
static
vlc_key_t
vlc_TranslateKey
(
const
vlc_object_t
*
obj
,
uint_fast32_t
keycode
)
vlc_key_t
vlc_TranslateKey
(
const
vlc_object_t
*
obj
,
uint_fast32_t
keycode
)
...
@@ -293,6 +298,10 @@ static int actcmp(const void *key, const void *ent)
...
@@ -293,6 +298,10 @@ static int actcmp(const void *key, const void *ent)
return
strcmp
(
key
,
act
->
name
);
return
strcmp
(
key
,
act
->
name
);
}
}
/**
* Get the action ID from the action name in the configuration subsystem.
* @return the action ID or ACTIONID_NONE on error.
*/
vlc_key_t
vlc_GetActionId
(
const
char
*
name
)
vlc_key_t
vlc_GetActionId
(
const
char
*
name
)
{
{
const
struct
action
*
act
;
const
struct
action
*
act
;
...
...
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