From 60604ffc58d716f0d1ff8d908f9695f96acc9011 Mon Sep 17 00:00:00 2001 From: linbingchen Date: Sat, 15 Nov 2014 15:09:24 +0800 Subject: [PATCH] Update xpad.c --- drivers/input/joystick/xpad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 2ed7905a068fc9..9ba658e8c850a2 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -363,13 +363,13 @@ static void xpad_process_packet(struct usb_xpad *xpad, u16 cmd, unsigned char *d input_report_abs(dev, ABS_X, (__s16) le16_to_cpup((__le16 *)(data + 12))); input_report_abs(dev, ABS_Y, - ~(__s16) le16_to_cpup((__le16 *)(data + 14))); + (~(__s16) le16_to_cpup((__le16 *)(data + 14))) + 1 ); /* right stick */ input_report_abs(dev, ABS_RX, (__s16) le16_to_cpup((__le16 *)(data + 16))); input_report_abs(dev, ABS_RY, - ~(__s16) le16_to_cpup((__le16 *)(data + 18))); + (~(__s16) le16_to_cpup((__le16 *)(data + 18))) + 1 ); } /* triggers left/right */