* Joystick-hat fix for drivers/usb/hid-input.c
@ 2001-10-15 21:41 David Megginson
0 siblings, 0 replies; only message in thread
From: David Megginson @ 2001-10-15 21:41 UTC (permalink / raw)
To: linux-kernel
[NOTE: I'm not subscribed to linux-kernel -- if you have any
questions, please reply directly to me.]
Between 2.4.9 and 2.4.10, drivers/usb/hid.c was replaced by
drivers/usb/hid-input.c, and a small typo broke support for USB
joystick hats. Here's a patch to 2.4.12 that fixes the problem:
========================================================================
--- drivers/usb/hid-input.c.ORIG Tue Sep 25 07:01:26 2001
+++ drivers/usb/hid-input.c Mon Oct 15 17:31:27 2001
@@ -61,7 +61,7 @@
static struct {
__s32 x;
__s32 y;
-} hid_hat_to_axis[] = {{0, 0}, { 0,-1}, { 1,-1}, { 1, 0}, { 1, 1}, { 0, 1}, {-1, 1}, {-1, 0}, {-1,-1}};
+} hid_hat_to_axis[] = {{ 0,-1}, { 1,-1}, { 1, 0}, { 1, 1}, { 0, 1}, {-1, 1}, {-1, 0}, {-1,-1}, {0,0}};
static void hidinput_configure_usage(struct hid_device *device, struct hid_field *field, struct hid_usage *usage)
{
========================================================================
You'll notice that the order of the hid_hat_to_axis entries in the
patched version is the same as in the original hid.c.
All the best,
David
--
David Megginson
david@megginson.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-10-15 21:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-15 21:41 Joystick-hat fix for drivers/usb/hid-input.c David Megginson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®