diff options
Diffstat (limited to 'drivers/hid/hid-wiimote-modules.c')
-rw-r--r-- | drivers/hid/hid-wiimote-modules.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-wiimote-modules.c b/drivers/hid/hid-wiimote-modules.c index 71adf9e60b13..e30567af42ed 100644 --- a/drivers/hid/hid-wiimote-modules.c +++ b/drivers/hid/hid-wiimote-modules.c | |||
@@ -1656,9 +1656,9 @@ static void wiimod_pro_in_ext(struct wiimote_data *wdata, const __u8 *ext) | |||
1656 | ry = (ext[6] & 0xff) | ((ext[7] & 0x0f) << 8); | 1656 | ry = (ext[6] & 0xff) | ((ext[7] & 0x0f) << 8); |
1657 | 1657 | ||
1658 | input_report_abs(wdata->extension.input, ABS_X, lx - 0x800); | 1658 | input_report_abs(wdata->extension.input, ABS_X, lx - 0x800); |
1659 | input_report_abs(wdata->extension.input, ABS_Y, ly - 0x800); | 1659 | input_report_abs(wdata->extension.input, ABS_Y, 0x800 - ly); |
1660 | input_report_abs(wdata->extension.input, ABS_RX, rx - 0x800); | 1660 | input_report_abs(wdata->extension.input, ABS_RX, rx - 0x800); |
1661 | input_report_abs(wdata->extension.input, ABS_RY, ry - 0x800); | 1661 | input_report_abs(wdata->extension.input, ABS_RY, 0x800 - ry); |
1662 | 1662 | ||
1663 | input_report_key(wdata->extension.input, | 1663 | input_report_key(wdata->extension.input, |
1664 | wiimod_pro_map[WIIMOD_PRO_KEY_RIGHT], | 1664 | wiimod_pro_map[WIIMOD_PRO_KEY_RIGHT], |