mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
dinput: Remove redundant struct members.
This commit is contained in:
parent
3083b0a6c7
commit
97fed19afc
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue