aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/joystick/xpad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index 8804ad30dae2..6288c4f6e3a3 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -87,7 +87,7 @@
87 but we map them to axes when possible to simplify things */ 87 but we map them to axes when possible to simplify things */
88#define MAP_DPAD_TO_BUTTONS 0 88#define MAP_DPAD_TO_BUTTONS 0
89#define MAP_DPAD_TO_AXES 1 89#define MAP_DPAD_TO_AXES 1
90#define MAP_DPAD_UNKNOWN -1 90#define MAP_DPAD_UNKNOWN 2
91 91
92#define XTYPE_XBOX 0 92#define XTYPE_XBOX 0
93#define XTYPE_XBOX360 1 93#define XTYPE_XBOX360 1
@@ -653,7 +653,7 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id
653 xpad->dpad_mapping = xpad_device[i].dpad_mapping; 653 xpad->dpad_mapping = xpad_device[i].dpad_mapping;
654 xpad->xtype = xpad_device[i].xtype; 654 xpad->xtype = xpad_device[i].xtype;
655 if (xpad->dpad_mapping == MAP_DPAD_UNKNOWN) 655 if (xpad->dpad_mapping == MAP_DPAD_UNKNOWN)
656 xpad->dpad_mapping = dpad_to_buttons; 656 xpad->dpad_mapping = !dpad_to_buttons;
657 if (xpad->xtype == XTYPE_UNKNOWN) 657 if (xpad->xtype == XTYPE_UNKNOWN)
658 xpad->xtype = (intf->cur_altsetting->desc.bInterfaceClass == USB_CLASS_VENDOR_SPEC); 658 xpad->xtype = (intf->cur_altsetting->desc.bInterfaceClass == USB_CLASS_VENDOR_SPEC);
659 xpad->dev = input_dev; 659 xpad->dev = input_dev;