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
cb8bc378
Commit
cb8bc378
authored
Oct 12, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Only dump the HID report data that has been read.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
33578878
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
joystick_hid.c
dlls/dinput/joystick_hid.c
+2
-2
No files found.
dlls/dinput/joystick_hid.c
View file @
cb8bc378
...
@@ -1607,14 +1607,14 @@ static HRESULT hid_joystick_read_state( IDirectInputDevice8W *iface )
...
@@ -1607,14 +1607,14 @@ static HRESULT hid_joystick_read_state( IDirectInputDevice8W *iface )
if
(
ret
&&
TRACE_ON
(
dinput
))
if
(
ret
&&
TRACE_ON
(
dinput
))
{
{
TRACE
(
"read size %u report:
\n
"
,
count
);
TRACE
(
"read size %u report:
\n
"
,
count
);
for
(
i
=
0
;
i
<
report_len
;)
for
(
i
=
0
;
i
<
count
;)
{
{
char
buffer
[
256
],
*
buf
=
buffer
;
char
buffer
[
256
],
*
buf
=
buffer
;
buf
+=
sprintf
(
buf
,
"%08x "
,
i
);
buf
+=
sprintf
(
buf
,
"%08x "
,
i
);
do
do
{
{
buf
+=
sprintf
(
buf
,
" %02x"
,
(
BYTE
)
report_buf
[
i
]
);
buf
+=
sprintf
(
buf
,
" %02x"
,
(
BYTE
)
report_buf
[
i
]
);
}
while
(
++
i
%
16
&&
i
<
report_len
);
}
while
(
++
i
%
16
&&
i
<
count
);
TRACE
(
"%s
\n
"
,
buffer
);
TRACE
(
"%s
\n
"
,
buffer
);
}
}
}
}
...
...
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