|
@@ -499,6 +499,9 @@ static int xpad_play_effect(struct input_dev *dev, void *data,
|
|
|
|
|
|
static int xpad_init_ff(struct usb_xpad *xpad)
|
|
static int xpad_init_ff(struct usb_xpad *xpad)
|
|
{
|
|
{
|
|
|
|
+ if (xpad->xtype != XTYPE_XBOX360)
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
input_set_capability(xpad->dev, EV_FF, FF_RUMBLE);
|
|
input_set_capability(xpad->dev, EV_FF, FF_RUMBLE);
|
|
|
|
|
|
return input_ff_create_memless(xpad->dev, NULL, xpad_play_effect);
|
|
return input_ff_create_memless(xpad->dev, NULL, xpad_play_effect);
|