public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/usb/hid.c
@ 2001-04-25 21:44 Vivek Dasmohapatra
  2001-04-26  8:05 ` drivers/usb/hid.c Vojtech Pavlik
  0 siblings, 1 reply; 2+ messages in thread
From: Vivek Dasmohapatra @ 2001-04-25 21:44 UTC (permalink / raw)
  To: Linux Kernel Mailing List


Hi: Been battling w. my new Gravis joystick [kernel 2.4.3-ac5] - the
driver wouldn't recognise it through the gameport, but would through the
USB port [the stick came with a converter]. I did have one problem though:
I had to apply the following one line patch to get the joystick hat to
work correctly: Don't know if this is generally correct, as I only have
one USB joystick with which to test it.

--- linux/drivers/usb/hid.c~	Sat Apr 21 20:34:33 2001
+++ linux/drivers/usb/hid.c	Sat Apr 21 20:38:51 2001
@@ -78,7 +78,7 @@
 static struct {
 	__s32 x;
 	__s32 y;
-}  hid_hat_to_axis[] = {{ 0,-1}, { 1,-1}, { 1, 0}, { 1, 1}, { 0, 1}, {-1, 1}, {-1, 0}, {-1,-1}, { 0, 0}};
+}  hid_hat_to_axis[] = {{ 0, 0}, { 0,-1}, { 1,-1}, { 1, 0}, { 1, 1}, { 0, 1}, {-1, 1}, {-1, 0}, {-1,-1}};
 
 static char *hid_types[] = {"Device", "Pointer", "Mouse", "Device", "Joystick",
 				"Gamepad", "Keyboard", "Keypad", "Multi-Axis Controller"};


-- 
I've had a perfectly wonderful evening.  But this wasn't it.
                -- Groucho Marx



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-26  8:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-25 21:44 drivers/usb/hid.c Vivek Dasmohapatra
2001-04-26  8:05 ` drivers/usb/hid.c Vojtech Pavlik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox