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
97fed19a
Commit
97fed19a
authored
Jul 07, 2006
by
Christoph Frick
Committed by
Alexandre Julliard
Jul 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Remove redundant struct members.
parent
3083b0a6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+2
-4
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
97fed19a
...
...
@@ -145,8 +145,6 @@ struct JoystickImpl
DIJOYSTATE2
js
;
/* Force feedback variables */
BOOL
has_ff
;
int
num_effects
;
EffectListItem
*
top_effect
;
int
ff_state
;
};
...
...
@@ -1230,7 +1228,7 @@ static HRESULT WINAPI JoystickAImpl_GetCapabilities(
}
}
if
(
This
->
has_ff
)
if
(
This
->
joydev
->
has_ff
)
lpDIDevCaps
->
dwFlags
|=
DIDC_FORCEFEEDBACK
;
lpDIDevCaps
->
dwAxes
=
axes
;
...
...
@@ -1332,7 +1330,7 @@ static HRESULT WINAPI JoystickAImpl_EnumObjects(
ddoi
.
dwOfs
=
This
->
df
->
rgodf
[
user_object
].
dwOfs
;
/* Linux event force feedback supports only (and always) x and y axes */
if
(
i
==
ABS_X
||
i
==
ABS_Y
)
{
if
(
This
->
has_ff
)
if
(
This
->
joydev
->
has_ff
)
ddoi
.
dwFlags
|=
DIDOI_FFACTUATOR
;
}
sprintf
(
ddoi
.
tszName
,
"%d-Axis"
,
i
);
...
...
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