git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Input: xpad - enable force feedback on xbox 360 controllers only
[safe/jmp/linux-2.6]
/
drivers
/
input
/
joystick
/
xpad.c
diff --git
a/drivers/input/joystick/xpad.c
b/drivers/input/joystick/xpad.c
index
b48f705
..
fd80113
100644
(file)
--- a/
drivers/input/joystick/xpad.c
+++ b/
drivers/input/joystick/xpad.c
@@
-499,6
+499,9
@@
static int xpad_play_effect(struct input_dev *dev, void *data,
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);
return input_ff_create_memless(xpad->dev, NULL, xpad_play_effect);