dinput: Set force feedback actuator flag for X and Y axes.

Programs looking for this flag to verify if FF is present. And on which axes.
oldstable
Vitaliy Margolen 2008-07-05 22:25:37 -06:00 committed by Alexandre Julliard
parent a478c4fe25
commit ba1a7ba62a
1 changed files with 4 additions and 0 deletions

View File

@ -472,6 +472,10 @@ static JoystickImpl *alloc_device(REFGUID rguid, const void *jvt, IDirectInputIm
newDevice->props[idx].lSaturation = 0;
newDevice->props[idx].lDeadZone = def_deadzone;
/* Linux supports force-feedback on X & Y axes only */
if (newDevice->joydev->has_ff && (i == 0 || i == 1))
df->rgodf[idx].dwFlags |= DIDOI_FFACTUATOR;
df->rgodf[idx++].dwType = DIDFT_MAKEINSTANCE(newDevice->numAxes++) | DIDFT_ABSAXIS;
}