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
895f573f
Commit
895f573f
authored
Jan 08, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: make volume touch less sensitive
parent
34a7c0c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
modules/video_output/msw/win32touch.c
modules/video_output/msw/win32touch.c
+9
-4
No files found.
modules/video_output/msw/win32touch.c
View file @
895f573f
...
...
@@ -48,7 +48,7 @@ LRESULT DecodeGesture( vlc_object_t *p_this, win32_gesture_sys_t *p_gesture,
/* Set the win32_gesture_sys_t values */
p_gesture
->
i_beginx
=
gi
.
ptsLocation
.
x
;
p_gesture
->
i_beginy
=
gi
.
ptsLocation
.
y
;
p_gesture
->
i_lasty
=
-
1
;
p_gesture
->
i_lasty
=
p_gesture
->
i_beginy
;
p_gesture
->
b_2fingers
=
false
;
break
;
case
GID_END
:
...
...
@@ -101,11 +101,16 @@ LRESULT DecodeGesture( vlc_object_t *p_this, win32_gesture_sys_t *p_gesture,
if
(
p_gesture
->
i_action
==
GESTURE_ACTION_VOLUME
)
{
int
offset
=
p_gesture
->
i_beginy
-
gi
.
ptsLocation
.
y
;
if
(
offset
>
0
)
int
offset
=
p_gesture
->
i_lasty
-
gi
.
ptsLocation
.
y
;
if
(
offset
>
100
)
var_SetInteger
(
p_this
->
p_libvlc
,
"key-action"
,
ACTIONID_VOL_UP
);
else
else
if
(
offset
<
-
100
)
var_SetInteger
(
p_this
->
p_libvlc
,
"key-action"
,
ACTIONID_VOL_DOWN
);
else
break
;
p_gesture
->
i_lasty
=
gi
.
ptsLocation
.
y
;
}
else
if
(
p_gesture
->
i_action
==
GESTURE_ACTION_BRIGHTNESS
)
{
...
...
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