From: Antonio Ospite <ospite@studenti.unina.it>
To: David Herrmann <dh.herrmann@gmail.com>
Cc: linux-input@vger.kernel.org, Dmitry Torokhov <dmitry.torokhov@gmail.com>
Subject: Re: [PATCH] Input: clarify gamepad API ABS values
Date: Thu, 14 Nov 2013 18:07:20 +0100 [thread overview]
Message-ID: <20131114180720.fece45888942c29d5865073e@studenti.unina.it> (raw)
In-Reply-To: <1380806829-11824-1-git-send-email-dh.herrmann@gmail.com>
On Thu, 3 Oct 2013 15:27:09 +0200
David Herrmann <dh.herrmann@gmail.com> wrote:
> It wasn't really clear from the gamepad-API description how ABS values are
> mapped exactly. Clarify that negative is left/up and positive is
> right/down.
I was just going to ask that, thanks.
Has this patch picked up?
> ... Unfortunately, this means I screwed up the Wii U ProController
> ABI. Anyhow, this just means we continue to have 0 compatible gamepad
> drivers in the kernel. User-space needs to fix them up, anyway, as all
> other gamepads are also incompatible.
>
I know it is not really relevant and you won't fix the kernel interface
anyway, but I was just curios: is there any known userspace using the
gamepad API?
Another question is below.
> Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
> ---
> Documentation/input/gamepad.txt | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/Documentation/input/gamepad.txt b/Documentation/input/gamepad.txt
> index 8002c89..31bb6a4 100644
> --- a/Documentation/input/gamepad.txt
> +++ b/Documentation/input/gamepad.txt
> @@ -122,12 +122,14 @@ D-Pad:
> BTN_DPAD_*
> Analog buttons are reported as:
> ABS_HAT0X and ABS_HAT0Y
> + (for ABS values negative is left/up, positive is right/down)
>
Does that mean that analog D-Pad Left and D-Pad Right are supposed to be
described as a single axis (ABS_HAT0X), even if in the input report
they come as two different fields (non adjacent even)? And same for
analog Up/Down?
JFYI on the PS3 controller it is possible to have values from analog
D-Pad Left and analog D-Pad Right at the same time, even if it is
mechanically unlikely.
> Analog-Sticks:
> The left analog-stick is reported as ABS_X, ABS_Y. The right analog stick is
> reported as ABS_RX, ABS_RY. Zero, one or two sticks may be present.
> If analog-sticks provide digital buttons, they are mapped accordingly as
> BTN_THUMBL (first/left) and BTN_THUMBR (second/right).
> + (for ABS values negative is left/up, positive is right/down)
>
> Triggers:
> Trigger buttons can be available as digital or analog buttons or both. User-
> @@ -138,6 +140,7 @@ Triggers:
> ABS_HAT2X (right/ZR) and BTN_TL2 or ABS_HAT2Y (left/ZL).
> If only one trigger-button combination is present (upper+lower), they are
> reported as "right" triggers (BTN_TR/ABS_HAT1X).
> + (ABS trigger values start at 0, pressure is reported as positive values)
>
What about analog Action-Pad buttons?
Do you suggest any mapping for them?
> Menu-Pad:
> Menu buttons are always digital and are mapped according to their location
Thanks,
Antonio
--
Antonio Ospite
http://ao2.it
A: Because it messes up the order in which people normally read text.
See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
next prev parent reply other threads:[~2013-11-14 17:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-03 13:27 [PATCH] Input: clarify gamepad API ABS values David Herrmann
2013-11-14 17:07 ` Antonio Ospite [this message]
2013-11-14 17:22 ` David Herrmann
2013-11-14 22:53 ` Antonio Ospite
2013-11-14 17:43 ` simon
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=20131114180720.fece45888942c29d5865073e@studenti.unina.it \
--to=ospite@studenti.unina.it \
--cc=dh.herrmann@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.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).