Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
6d032d9e
Commit
6d032d9e
authored
May 08, 2007
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tab and trailing space police.
parent
f4833f08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
35 deletions
+35
-35
modules/control/hotkeys.c
modules/control/hotkeys.c
+35
-35
No files found.
modules/control/hotkeys.c
View file @
6d032d9e
...
...
@@ -161,47 +161,47 @@ static void Run( intf_thread_t *p_intf )
int
i_times
=
0
;
/* Sleep a bit */
// msleep( INTF_IDLE_SLEEP );
/* msleep( INTF_IDLE_SLEEP ); */
i_action
=
0
;
i_key
=
GetKey
(
p_intf
);
/* Special action for mouse event */
/* FIXME: This should probably be configurable */
/* FIXME: rework hotkeys handling to allow more than 1 event
* to trigger one same action */
switch
(
i_key
&
KEY_SPECIAL
)
{
case
KEY_MOUSEWHEELUP
:
i_action
=
ACTIONID_VOL_UP
;
break
;
case
KEY_MOUSEWHEELDOWN
:
i_action
=
ACTIONID_VOL_DOWN
;
break
;
case
KEY_MOUSEWHEELLEFT
:
i_action
=
ACTIONID_JUMP_BACKWARD_EXTRASHORT
;
break
;
case
KEY_MOUSEWHEELRIGHT
:
i_action
=
ACTIONID_JUMP_FORWARD_EXTRASHORT
;
break
;
default:
break
;
}
/* Special action for mouse event */
/* FIXME: This should probably be configurable */
/* FIXME: rework hotkeys handling to allow more than 1 event
* to trigger one same action */
switch
(
i_key
&
KEY_SPECIAL
)
{
case
KEY_MOUSEWHEELUP
:
i_action
=
ACTIONID_VOL_UP
;
break
;
case
KEY_MOUSEWHEELDOWN
:
i_action
=
ACTIONID_VOL_DOWN
;
break
;
case
KEY_MOUSEWHEELLEFT
:
i_action
=
ACTIONID_JUMP_BACKWARD_EXTRASHORT
;
break
;
case
KEY_MOUSEWHEELRIGHT
:
i_action
=
ACTIONID_JUMP_FORWARD_EXTRASHORT
;
break
;
default:
break
;
}
/* No mouse action, find action triggered by hotkey */
if
(
!
i_action
)
{
for
(
i
=
0
;
i_key
!=
-
1
&&
p_hotkeys
[
i
].
psz_action
!=
NULL
;
i
++
)
{
if
(
p_hotkeys
[
i
].
i_key
==
i_key
)
{
i_action
=
p_hotkeys
[
i
].
i_action
;
i_times
=
p_hotkeys
[
i
].
i_times
;
/* times key pressed within max. delta time */
p_hotkeys
[
i
].
i_times
=
0
;
break
;
}
}
}
{
for
(
i
=
0
;
i_key
!=
-
1
&&
p_hotkeys
[
i
].
psz_action
!=
NULL
;
i
++
)
{
if
(
p_hotkeys
[
i
].
i_key
==
i_key
)
{
i_action
=
p_hotkeys
[
i
].
i_action
;
i_times
=
p_hotkeys
[
i
].
i_times
;
/* times key pressed within max. delta time */
p_hotkeys
[
i
].
i_times
=
0
;
break
;
}
}
}
if
(
!
i_action
)
{
...
...
@@ -219,7 +219,7 @@ static void Run( intf_thread_t *p_intf )
if
(
p_input
)
vlc_object_yield
(
p_input
);
PL_UNLOCK
;
/* Update the vout */
p_last_vout
=
p_vout
;
p_vout
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
...
...
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