linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Todd Showalter <todd@electronjump.com>
Cc: Antonio Ospite <ospite@studenti.unina.it>, linux-input@vger.kernel.org
Subject: Re: Game Controllers
Date: Thu, 2 May 2013 10:01:03 -0700	[thread overview]
Message-ID: <20130502170103.GC28625@core.coreip.homeip.net> (raw)
In-Reply-To: <CAFmpkygZ+xvpwp9KQr6O4emk2f1Bn0EBS0WeN1ji0qVUJz2rwA@mail.gmail.com>

On Thu, May 02, 2013 at 09:46:44AM -0400, Todd Showalter wrote:
> 
> left stick: ABS_X, ABS_Y
> right stick: ABS_RX, ABS_RY

Not sure about this one. Originally RX, RY and RZ were introduces for
device having more than 3 degress of freedom; and RX is used by many
joystick devices. We'd ether need a property bit to distinguish gamepad
from a joystick or simply ass ABS_X2, ABS_Y2 etc for the second stick.

> dpad: ABS_HAT0X, ABS_HAT0Y
> left trigger: ABS_Z

Huh?

> right trigger: ABS_RZ

Not at all. These are not absolute events but rather buttons, so let's
define them as such.

> start button: BTN_START
> system button: BTN_SYSTEM
> four face buttons: BTN_NORTH, BTN_EAST, BTN_SOUTH, BTN_WEST
> two shoulder buttons: BTN_TL, BTN_TR
> two stick click buttons: BTN_THUMBL, BTN_THUMBR

Thanks.

-- 
Dmitry

  parent reply	other threads:[~2013-05-02 17:01 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-27  0:13 Game Controllers Todd Showalter
2013-04-29 21:04 ` Dmitry Torokhov
2013-04-30  0:46   ` Todd Showalter
2013-05-02  6:35     ` Antonio Ospite
2013-05-02 13:46       ` Todd Showalter
2013-05-02 14:09         ` David Herrmann
2013-05-02 15:37           ` Todd Showalter
2013-05-02 16:55             ` Dmitry Torokhov
2013-05-02 15:58           ` Todd Showalter
2013-05-02 16:38             ` Dmitry Torokhov
2013-05-02 17:06               ` Todd Showalter
2013-05-02 18:29                 ` Dmitry Torokhov
2013-05-02 19:54                   ` Todd Showalter
2013-05-02 20:18                     ` Dmitry Torokhov
2013-05-02 20:30                       ` Todd Showalter
2013-05-02 20:49                         ` Dmitry Torokhov
2013-05-02 17:01         ` Dmitry Torokhov [this message]
2013-05-02 17:35           ` Todd Showalter
2013-05-02 17:54             ` David Herrmann
2013-05-02 19:10               ` Todd Showalter
2013-05-02 20:45                 ` Dmitry Torokhov
2013-05-02 21:10                   ` Todd Showalter
2013-05-03 15:50                     ` Dmitry Torokhov
2013-09-07 17:01                       ` Bastien Nocera
2013-05-03 10:29                 ` Simon Farnsworth
2013-05-03 12:57                   ` Todd Showalter
2013-05-03 16:01                     ` Dmitry Torokhov
2013-05-03 17:12                       ` Todd Showalter
2013-05-03 22:03     ` Ignaz Forster
2013-05-04 13:48       ` Todd Showalter
2013-05-02  3:25 ` Ray Dillinger

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=20130502170103.GC28625@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=ospite@studenti.unina.it \
    --cc=todd@electronjump.com \
    /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).