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
5dc612be
Commit
5dc612be
authored
Jan 31, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hotkeys: remove special key event
parent
812836af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
28 deletions
+0
-28
modules/control/hotkeys.c
modules/control/hotkeys.c
+0
-28
No files found.
modules/control/hotkeys.c
View file @
5dc612be
...
...
@@ -64,8 +64,6 @@ static int Open ( vlc_object_t * );
static
void
Close
(
vlc_object_t
*
);
static
int
ActionEvent
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
SpecialKeyEvent
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
void
PlayBookmark
(
intf_thread_t
*
,
int
);
static
void
SetBookmark
(
intf_thread_t
*
,
int
);
static
void
DisplayPosition
(
intf_thread_t
*
,
vout_thread_t
*
,
input_thread_t
*
);
...
...
@@ -108,7 +106,6 @@ static int Open( vlc_object_t *p_this )
p_sys
->
p_last_vout
=
NULL
;
var_AddCallback
(
p_intf
->
p_libvlc
,
"key-pressed"
,
SpecialKeyEvent
,
p_intf
);
var_AddCallback
(
p_intf
->
p_libvlc
,
"key-action"
,
ActionEvent
,
p_intf
);
return
VLC_SUCCESS
;
}
...
...
@@ -122,7 +119,6 @@ static void Close( vlc_object_t *p_this )
intf_sys_t
*
p_sys
=
p_intf
->
p_sys
;
var_DelCallback
(
p_intf
->
p_libvlc
,
"key-action"
,
ActionEvent
,
p_intf
);
var_DelCallback
(
p_intf
->
p_libvlc
,
"key-pressed"
,
SpecialKeyEvent
,
p_intf
);
/* Destroy structure */
free
(
p_sys
);
...
...
@@ -917,30 +913,6 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
return
VLC_SUCCESS
;
}
/*****************************************************************************
* SpecialKeyEvent: callback for mouse events
*****************************************************************************/
static
int
SpecialKeyEvent
(
vlc_object_t
*
libvlc
,
char
const
*
psz_var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
(
void
)
p_data
;
(
void
)
psz_var
;
(
void
)
oldval
;
/* Special action for mouse event */
/* FIXME: rework hotkeys handling to allow more than 1 event
* to trigger one same action */
switch
(
newval
.
i_int
&
~
KEY_MODIFIER
)
{
case
KEY_MENU
:
var_SetBool
(
libvlc
,
"intf-popupmenu"
,
true
);
break
;
}
return
VLC_SUCCESS
;
}
/*****************************************************************************
* ActionEvent: callback for hotkey actions
*****************************************************************************/
...
...
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