Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
b3946a0a
Commit
b3946a0a
authored
Jun 21, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Don't enable XInput for devices reporting absolute coordinates.
parent
dc16a01f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
mouse.c
dlls/winex11.drv/mouse.c
+16
-1
No files found.
dlls/winex11.drv/mouse.c
View file @
b3946a0a
...
...
@@ -258,7 +258,7 @@ static void enable_xinput2(void)
XIDeviceInfo
*
devices
;
XIEventMask
mask
;
unsigned
char
mask_bits
[
XIMaskLen
(
XI_LASTEVENT
)];
int
i
,
count
;
int
i
,
j
,
count
;
if
(
!
xinput2_available
)
return
;
...
...
@@ -281,6 +281,20 @@ static void enable_xinput2(void)
for
(
i
=
0
;
i
<
count
;
++
i
)
{
if
(
devices
[
i
].
use
!=
XIMasterPointer
)
continue
;
for
(
j
=
0
;
j
<
devices
[
i
].
num_classes
;
j
++
)
{
XIValuatorClassInfo
*
class
=
(
XIValuatorClassInfo
*
)
devices
[
i
].
classes
[
j
];
if
(
devices
[
i
].
classes
[
j
]
->
type
!=
XIValuatorClass
)
continue
;
if
(
class
->
number
!=
0
&&
class
->
number
!=
1
)
continue
;
if
(
class
->
mode
==
XIModeAbsolute
)
{
TRACE
(
"Device %u (%s) class %u num %u %f,%f res %u is absolute, not enabling XInput2
\n
"
,
devices
[
i
].
deviceid
,
debugstr_a
(
devices
[
i
].
name
),
j
,
class
->
number
,
class
->
min
,
class
->
max
,
class
->
resolution
);
goto
done
;
}
}
TRACE
(
"Using %u (%s) as core pointer
\n
"
,
devices
[
i
].
deviceid
,
debugstr_a
(
devices
[
i
].
name
)
);
xinput2_core_pointer
=
devices
[
i
].
deviceid
;
...
...
@@ -304,6 +318,7 @@ static void enable_xinput2(void)
}
}
done:
pXIFreeDeviceInfo
(
devices
);
wine_tsx11_unlock
();
#endif
...
...
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