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
c55980a4
Commit
c55980a4
authored
May 02, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Retrieve the usage page and usage directly from the hid_preparsed_data structure.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
parent
4c4c64bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
rawinput.c
dlls/user32/rawinput.c
+4
-9
No files found.
dlls/user32/rawinput.c
View file @
c55980a4
...
...
@@ -101,10 +101,10 @@ static struct device *add_device( HDEVINFO set, SP_DEVICE_INTERFACE_DATA *iface,
SP_DEVINFO_DATA
device_data
=
{
sizeof
(
device_data
)};
PHIDP_PREPARSED_DATA
preparsed_data
=
NULL
;
SP_DEVICE_INTERFACE_DETAIL_DATA_W
*
detail
;
struct
hid_preparsed_data
*
preparsed
;
struct
device
*
device
=
NULL
;
RID_DEVICE_INFO
info
;
HIDD_ATTRIBUTES
attr
;
HIDP_CAPS
caps
;
UINT32
handle
;
DWORD
i
,
size
;
HANDLE
file
;
...
...
@@ -167,15 +167,10 @@ static struct device *add_device( HDEVINFO set, SP_DEVICE_INTERFACE_DATA *iface,
ERR
(
"Failed to get preparsed data.
\n
"
);
goto
fail
;
}
preparsed
=
(
struct
hid_preparsed_data
*
)
preparsed_data
;
if
(
!
HidP_GetCaps
(
preparsed_data
,
&
caps
))
{
ERR
(
"Failed to get caps.
\n
"
);
goto
fail
;
}
info
.
hid
.
usUsagePage
=
caps
.
UsagePage
;
info
.
hid
.
usUsage
=
caps
.
Usage
;
info
.
hid
.
usUsagePage
=
preparsed
->
usage_page
;
info
.
hid
.
usUsage
=
preparsed
->
usage
;
break
;
case
RIM_TYPEMOUSE
:
...
...
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