Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
0a939842
Commit
0a939842
authored
Sep 25, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Add a workaround for XInput support with mouse drivers that don't provide labels.
parent
8168e184
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
mouse.c
dlls/winex11.drv/mouse.c
+6
-2
No files found.
dlls/winex11.drv/mouse.c
View file @
0a939842
...
...
@@ -286,6 +286,8 @@ static void enable_xinput2(void)
class
->
number
,
class
->
min
,
class
->
max
,
class
->
resolution
,
class
->
mode
,
XGetAtomName
(
data
->
display
,
class
->
label
));
if
(
class
->
label
==
x11drv_atom
(
Rel_X
)
||
class
->
label
==
x11drv_atom
(
Rel_Y
))
count
++
;
/* workaround for drivers that don't provide labels */
if
(
!
class
->
label
&&
class
->
number
<=
1
&&
class
->
mode
==
XIModeRelative
)
count
++
;
}
if
(
count
<
2
)
continue
;
TRACE
(
"Using %u (%s) as core pointer
\n
"
,
...
...
@@ -1526,14 +1528,16 @@ static void X11DRV_RawMotion( XGenericEventCookie *xev )
if
(
XIMaskIsSet
(
event
->
valuators
.
mask
,
class
->
number
))
{
double
val
=
*
values
++
;
if
(
class
->
label
==
x11drv_atom
(
Rel_X
))
if
(
class
->
label
==
x11drv_atom
(
Rel_X
)
||
(
!
class
->
label
&&
class
->
number
==
0
&&
class
->
mode
==
XIModeRelative
))
{
input
.
u
.
mi
.
dx
=
dx
=
val
;
if
(
class
->
min
<
class
->
max
)
input
.
u
.
mi
.
dx
=
val
*
(
virtual_screen_rect
.
right
-
virtual_screen_rect
.
left
)
/
(
class
->
max
-
class
->
min
);
}
else
if
(
class
->
label
==
x11drv_atom
(
Rel_Y
))
else
if
(
class
->
label
==
x11drv_atom
(
Rel_Y
)
||
(
!
class
->
label
&&
class
->
number
==
1
&&
class
->
mode
==
XIModeRelative
))
{
input
.
u
.
mi
.
dy
=
dy
=
val
;
if
(
class
->
min
<
class
->
max
)
...
...
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