dinput: Silence some effects feedback in linuxinput

Bruno Jesus 00cpxxx at gmail.com
Fri Jan 6 12:09:55 CST 2017


When playing NFS Most Wanted with a joystick the console is constantly
spammed with fixmes. Acknowledge and ignore such codes as done with
others like EV_SYN and EV_MSC.

Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
-------------- next part --------------
diff --git a/dlls/dinput/joystick_linuxinput.c b/dlls/dinput/joystick_linuxinput.c
index 911700b..1635549 100644
--- a/dlls/dinput/joystick_linuxinput.c
+++ b/dlls/dinput/joystick_linuxinput.c
@@ -901,8 +901,25 @@ static void joy_polldev(LPDIRECTINPUTDEVICE8A iface)
             /* Ignore */
             break;
 #endif
+        case EV_FF:
+        {
+            switch (ie.code)
+            {
+                case FF_GAIN:
+                    /* Ignore */
+                    break;
+                case FF_AUTOCENTER:
+                    /* Ignore */
+                    break;
+                default:
+                    if (ie.code >= FF_MAX_EFFECTS) /* otherwise ie.code is an effect id */
+                        FIXME("Unknown EV_FF event (code %d, value %d)\n", ie.code, ie.value);
+                    break;
+            }
+            break;
+        }
 	default:
-	    FIXME("joystick cannot handle type %d event (code %d)\n",ie.type,ie.code);
+	    FIXME("joystick cannot handle type %d event (code %d, value %d)\n", ie.type, ie.code, ie.value);
 	    break;
 	}
         if (inst_id >= 0)


More information about the wine-patches mailing list