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
e4766cad
Commit
e4766cad
authored
Sep 28, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Remove unusual HID joystick button count FIXMEs.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5732347c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
joystick_hid.c
dlls/dinput/joystick_hid.c
+1
-5
No files found.
dlls/dinput/joystick_hid.c
View file @
e4766cad
...
@@ -359,9 +359,7 @@ static BOOL enum_objects( struct hid_joystick *impl, const DIPROPHEADER *header,
...
@@ -359,9 +359,7 @@ static BOOL enum_objects( struct hid_joystick *impl, const DIPROPHEADER *header,
TRACE
(
"Ignoring input button %s, usage page not implemented.
\n
"
,
debugstr_hid_caps
(
&
caps
)
);
TRACE
(
"Ignoring input button %s, usage page not implemented.
\n
"
,
debugstr_hid_caps
(
&
caps
)
);
else
if
(
caps
.
button
->
IsRange
)
else
if
(
caps
.
button
->
IsRange
)
{
{
if
(
caps
.
button
->
NotRange
.
Usage
>=
128
)
for
(
j
=
caps
.
button
->
Range
.
UsageMin
;
j
<=
caps
.
button
->
Range
.
UsageMax
;
++
j
)
FIXME
(
"Ignoring input button %s, too many buttons.
\n
"
,
debugstr_hid_caps
(
&
caps
)
);
else
for
(
j
=
caps
.
button
->
Range
.
UsageMin
;
j
<=
caps
.
button
->
Range
.
UsageMax
;
++
j
)
{
{
instance
.
dwOfs
=
button_ofs
+
(
j
-
caps
.
button
->
Range
.
UsageMin
);
instance
.
dwOfs
=
button_ofs
+
(
j
-
caps
.
button
->
Range
.
UsageMin
);
instance
.
dwType
=
DIDFT_PSHBUTTON
|
DIDFT_MAKEINSTANCE
(
button
++
);
instance
.
dwType
=
DIDFT_PSHBUTTON
|
DIDFT_MAKEINSTANCE
(
button
++
);
...
@@ -375,8 +373,6 @@ static BOOL enum_objects( struct hid_joystick *impl, const DIPROPHEADER *header,
...
@@ -375,8 +373,6 @@ static BOOL enum_objects( struct hid_joystick *impl, const DIPROPHEADER *header,
if
(
ret
!=
DIENUM_CONTINUE
)
return
ret
;
if
(
ret
!=
DIENUM_CONTINUE
)
return
ret
;
}
}
}
}
else
if
(
caps
.
button
->
NotRange
.
Usage
>=
128
)
FIXME
(
"Ignoring input button %s, too many buttons.
\n
"
,
debugstr_hid_caps
(
&
caps
)
);
else
else
{
{
instance
.
dwOfs
=
button_ofs
;
instance
.
dwOfs
=
button_ofs
;
...
...
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