From: Vojtech Pavlik <vojtech@suse.cz>
To: Vivek Dasmohapatra <vivek@etla.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: drivers/usb/hid.c
Date: Thu, 26 Apr 2001 10:05:47 +0200 [thread overview]
Message-ID: <20010426100547.A1659@suse.cz> (raw)
In-Reply-To: <Pine.LNX.4.10.10104252235460.2687-100000@www.teaparty.net>
In-Reply-To: <Pine.LNX.4.10.10104252235460.2687-100000@www.teaparty.net>; from vivek@etla.org on Wed, Apr 25, 2001 at 10:44:37PM +0100
On Wed, Apr 25, 2001 at 10:44:37PM +0100, Vivek Dasmohapatra wrote:
>
> 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'll have to verify, but either a fix got lost somewhere, or this is a
bug in the joystick. The hats were working fine.
--
Vojtech Pavlik
SuSE Labs
prev parent reply other threads:[~2001-04-26 8:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-25 21:44 drivers/usb/hid.c Vivek Dasmohapatra
2001-04-26 8:05 ` Vojtech Pavlik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010426100547.A1659@suse.cz \
--to=vojtech@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=vivek@etla.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox