linux/drivers/input/joystick
Leo L. Schwab 34087cf960 Input: spaceball - fix parsing of movement data packets
commit bc7ec91718 upstream.

The spaceball.c module was not properly parsing the movement reports
coming from the device.  The code read axis data as signed 16-bit
little-endian values starting at offset 2.

In fact, axis data in Spaceball movement reports are signed 16-bit
big-endian values starting at offset 3.  This was determined first by
visually inspecting the data packets, and later verified by consulting:
http://spacemice.org/pdf/SpaceBall_2003-3003_Protocol.pdf

If this ever worked properly, it was in the time before Git...

Signed-off-by: Leo L. Schwab <ewhac@ewhac.org>
Link: https://lore.kernel.org/r/20211221101630.1146385-1-ewhac@ewhac.org
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-05 12:40:33 +01:00
..
iforce Input: iforce - fix control-message timeout 2021-11-18 14:03:36 +01:00
a3d.c
adc-joystick.c Input: joystick - add ADC attached joystick driver. 2020-09-28 16:26:11 -07:00
adi.c
amijoy.c
analog.c
as5011.c
cobra.c
db9.c Input: Use fallthrough pseudo-keyword 2020-07-07 11:25:54 -07:00
fsia6b.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
gamecon.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
gf2k.c
grip_mp.c
grip.c
guillemot.c
interact.c
joydump.c
Kconfig Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2020-10-23 16:16:31 -07:00
magellan.c
Makefile Input: joystick - add ADC attached joystick driver. 2020-09-28 16:26:11 -07:00
maplecontrol.c
psxpad-spi.c Input: psxpad-spi - switch to using polled mode of input devices 2019-10-29 17:13:36 -07:00
pxrc.c
sidewinder.c Input: Use fallthrough pseudo-keyword 2020-07-07 11:25:54 -07:00
spaceball.c Input: spaceball - fix parsing of movement data packets 2022-01-05 12:40:33 +01:00
spaceorb.c
stinger.c
tmdc.c
turbografx.c
twidjoy.c
walkera0701.c
warrior.c
xpad.c Input: xpad - add support for another USB ID of Nacon GC-100 2021-10-20 11:45:00 +02:00
zhenhua.c