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
61db4aa6
Commit
61db4aa6
authored
Feb 16, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Feb 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Use DIEFT_GETTYPE instead masking bits.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a3b0cb74
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
joystick_hid.c
dlls/dinput/joystick_hid.c
+6
-3
No files found.
dlls/dinput/joystick_hid.c
View file @
61db4aa6
...
...
@@ -985,7 +985,7 @@ static HRESULT hid_joystick_get_effect_info( IDirectInputDevice8W *iface, DIEFFE
}
}
if
((
type
&
DIEFT_PERIODIC
)
&&
(
collection
=
set_periodic
->
collection
))
if
((
DIEFT_GETTYPE
(
type
)
==
DIEFT_PERIODIC
)
&&
(
collection
=
set_periodic
->
collection
))
{
if
(
set_periodic
->
magnitude_caps
)
info
->
dwDynamicParams
|=
DIEP_TYPESPECIFICPARAMS
;
if
(
set_periodic
->
offset_caps
)
info
->
dwDynamicParams
|=
DIEP_TYPESPECIFICPARAMS
;
...
...
@@ -993,7 +993,10 @@ static HRESULT hid_joystick_get_effect_info( IDirectInputDevice8W *iface, DIEFFE
if
(
set_periodic
->
phase_caps
)
info
->
dwDynamicParams
|=
DIEP_TYPESPECIFICPARAMS
;
}
if
((
type
&
(
DIEFT_PERIODIC
|
DIEFT_RAMPFORCE
|
DIEFT_CONSTANTFORCE
))
&&
(
collection
=
set_envelope
->
collection
))
if
((
DIEFT_GETTYPE
(
type
)
==
DIEFT_PERIODIC
||
DIEFT_GETTYPE
(
type
)
==
DIEFT_RAMPFORCE
||
DIEFT_GETTYPE
(
type
)
==
DIEFT_CONSTANTFORCE
)
&&
(
collection
=
set_envelope
->
collection
))
{
info
->
dwDynamicParams
|=
DIEP_ENVELOPE
;
if
(
set_envelope
->
attack_level_caps
)
type
|=
DIEFT_FFATTACK
;
...
...
@@ -1004,7 +1007,7 @@ static HRESULT hid_joystick_get_effect_info( IDirectInputDevice8W *iface, DIEFFE
if
(
effect_update
->
trigger_repeat_interval_caps
)
info
->
dwDynamicParams
|=
DIEP_TRIGGERREPEATINTERVAL
;
}
if
(
(
type
&
DIEFT_CONDITION
)
&&
(
collection
=
set_condition
->
collection
))
if
(
DIEFT_GETTYPE
(
type
)
==
DIEFT_CONDITION
&&
(
collection
=
set_condition
->
collection
))
{
if
(
set_condition
->
center_point_offset_caps
)
info
->
dwDynamicParams
|=
DIEP_TYPESPECIFICPARAMS
;
...
...
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