Module: wine Branch: master Commit: ba1a7ba62a55d2b7e205256fbaba5494c11ea25e URL: http://source.winehq.org/git/wine.git/?a=commit;h=ba1a7ba62a55d2b7e205256fba...
Author: Vitaliy Margolen wine-patches@kievinfo.com Date: Sat Jul 5 22:25:37 2008 -0600
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.
---
dlls/dinput/joystick_linuxinput.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/dinput/joystick_linuxinput.c b/dlls/dinput/joystick_linuxinput.c index 0ef90a1..aad25a4 100644 --- a/dlls/dinput/joystick_linuxinput.c +++ b/dlls/dinput/joystick_linuxinput.c @@ -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; }