mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 04:53:36 +01:00
Update xpad.c
This commit is contained in:
parent
56c381f93d
commit
60604ffc58
1 changed files with 2 additions and 2 deletions
|
@ -363,13 +363,13 @@ static void xpad_process_packet(struct usb_xpad *xpad, u16 cmd, unsigned char *d
|
||||||
input_report_abs(dev, ABS_X,
|
input_report_abs(dev, ABS_X,
|
||||||
(__s16) le16_to_cpup((__le16 *)(data + 12)));
|
(__s16) le16_to_cpup((__le16 *)(data + 12)));
|
||||||
input_report_abs(dev, ABS_Y,
|
input_report_abs(dev, ABS_Y,
|
||||||
~(__s16) le16_to_cpup((__le16 *)(data + 14)));
|
(~(__s16) le16_to_cpup((__le16 *)(data + 14))) + 1 );
|
||||||
|
|
||||||
/* right stick */
|
/* right stick */
|
||||||
input_report_abs(dev, ABS_RX,
|
input_report_abs(dev, ABS_RX,
|
||||||
(__s16) le16_to_cpup((__le16 *)(data + 16)));
|
(__s16) le16_to_cpup((__le16 *)(data + 16)));
|
||||||
input_report_abs(dev, ABS_RY,
|
input_report_abs(dev, ABS_RY,
|
||||||
~(__s16) le16_to_cpup((__le16 *)(data + 18)));
|
(~(__s16) le16_to_cpup((__le16 *)(data + 18))) + 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* triggers left/right */
|
/* triggers left/right */
|
||||||
|
|
Loading…
Reference in a new issue