From: "Andreas Hübner" <andreas@k4n.de>
To: simon@mungewell.org
Cc: linux-input@vger.kernel.org
Subject: Re: Saitek PS1000 gamepad - HID descriptor wonky
Date: Thu, 24 Nov 2011 09:12:24 +0100 [thread overview]
Message-ID: <20111124081205.GA22623@tapura> (raw)
In-Reply-To: <3b70c0a60fd5821240583b7b5c1412b0.squirrel@host171.canaca.com>
Hi Simon,
> As you probably noticed this HID descriptor is a little 'weird'.
>
> First it defines 6 usages
> [...]
> but then only says they are 5 inputs
Indeed. Actually, the controller only has 5 axes. Two analog sticks (4 axes)
and a throttle that is linked to the trigger buttons. Pressing the left
trigger yields a negative axis value and the right trigger produces
positive values. (I assume it's for controlling the acceleration, etc.)
This axis also has a threshold in the positive and negative range each
triggering a button press.
> So the next question has to be how committed to your ($15??) game pad are
> you, and are you will to go through the pain of building/submitting
> patches? It's a great opportunity to put 'kernel dev' on your resume ;-)
Well, I'm always happy when I can hack some code, so count me in. :)
Usually, the only problem for me is to get a decent setup to start
debugging.
But I guess, I'll have to learn a bit more about HID descriptors before
I can start hacking.
> Otherwise you could look at 'drivers/hid/hid-elecom.c' as a template for
> your patch.
Will take a look at it - thanks!
Andreas
next prev parent reply other threads:[~2011-11-24 8:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-22 10:28 joydev: support for Saitek PS1000 gamepad Andreas Hübner
2011-11-22 17:13 ` simon
2011-11-23 8:43 ` Andreas Hübner
2011-11-23 15:45 ` Saitek PS1000 gamepad - HID descriptor wonky simon
2011-11-24 8:12 ` Andreas Hübner [this message]
[not found] ` <30cc35606560d634477e2a288bdf6db3.squirrel@host171.canaca.com>
[not found] ` <20111208123424.GA1298@tapura>
[not found] ` <a8799dfc5b69fd158ec54b099d231961.squirrel@host171.canaca.com>
[not found] ` <20111210131702.GA5620@tapura>
[not found] ` <d13c53ac7f835eaff26cfc2aae0fac6c.squirrel@mungewell.org>
[not found] ` <20111211214010.GA14046@tapura>
2011-12-12 18:49 ` simon
2011-12-13 19:09 ` Andreas Hübner
2012-02-22 0:50 ` Andreas Hübner
-- strict thread matches above, loose matches on Subject: below --
2011-12-11 21:48 Andreas Hübner
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=20111124081205.GA22623@tapura \
--to=andreas@k4n.de \
--cc=linux-input@vger.kernel.org \
--cc=simon@mungewell.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;
as well as URLs for NNTP newsgroup(s).