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.
This commit is contained in:
parent
a478c4fe25
commit
ba1a7ba62a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue