Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93229
b: refs/heads/master
c: 97f09cb
h: refs/heads/master
i:
  93227: 7ce9708
v: v3
  • Loading branch information
Anssi Hannula authored and Dmitry Torokhov committed Apr 3, 2008
1 parent 51a88e4 commit c88feac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a0979923d7c34c9c60d0ee8a533f9502dcfbd42b
refs/heads/master: 97f09cb53da583cefc1ce2930de8f64b52cfc54b
8 changes: 4 additions & 4 deletions trunk/drivers/input/joystick/xpad.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,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)));

/* 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)));

/* triggers left/right */
input_report_abs(dev, ABS_Z, data[10]);
Expand Down Expand Up @@ -330,13 +330,13 @@ static void xpad360_process_packet(struct usb_xpad *xpad,
input_report_abs(dev, ABS_X,
(__s16) le16_to_cpup((__le16 *)(data + 6)));
input_report_abs(dev, ABS_Y,
(__s16) le16_to_cpup((__le16 *)(data + 8)));
~(__s16) le16_to_cpup((__le16 *)(data + 8)));

/* right stick */
input_report_abs(dev, ABS_RX,
(__s16) le16_to_cpup((__le16 *)(data + 10)));
input_report_abs(dev, ABS_RY,
(__s16) le16_to_cpup((__le16 *)(data + 12)));
~(__s16) le16_to_cpup((__le16 *)(data + 12)));

/* triggers left/right */
input_report_abs(dev, ABS_Z, data[4]);
Expand Down

0 comments on commit c88feac

Please sign in to comment.