linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Michael Gruber" <lists.mg@googlemail.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org
Subject: Re: [PATCH 1/2] xpad - Allow mapping D-pad to buttons for all pads
Date: Fri, 9 May 2008 02:20:28 +0200	[thread overview]
Message-ID: <74d457500805081720i36fdc887ue34b7bc7fdef8d86@mail.gmail.com> (raw)
In-Reply-To: <20080507111713.ZZRA012@mailhub.coreip.homeip.net>

On Wed, May 7, 2008 at 5:19 PM, Dmitry Torokhov wrote:
> Hi Michael,
>
> On Mon, May 05, 2008 at 12:34:00PM +0200, Michael Gruber wrote:
>> From: Michael Gruber <lists.mg@googlemail.com>
>>
>> If the new module option force_dpad_to_buttons is set, the directional pad will
>> be mapped to 4buttons instead of 2axes for all controllers. This includes those
>> in the list of known controllers which are not affected by the existing option
>> dpad_to_buttons.
>>
>
> The option was there to adapt mappings for the new controllers we
> don'ty know about yet. Coudl you explain why one would want to map
> axes to buttons on a controller that is known to be not a d-pad?
>
> Thanks!
>
> --
> Dmitry


For me being able to choose between 2axis or 4buttons is an additional feature.
Currently this feature is only offered if the controller is unknown which means
that if you have a known controller you end up with less features, which is
paradox.
Possible usage scenario: A user wants to play a first person shooter; he needs
2axes to look around and 2axes to move. Those 4axes are provided by the two
thumbsticks; the dpad and the trigger axes are useless for this player but he
might need a lot of buttons: fire, zoom, jump, duck, sprint, reload, switch
weapons, grenades, flashlight, and more; hence he would profit from having more
buttons; if the triggers acted as buttons then he could bind fire to the
trigger and if the directional pad acted as 4 buttons then he could for example
use them as shortcuts to his four favourite weapons.
A lot of Xbox360 games use the triggers and dpad axes for actions that can
usually only be bound to buttons in PC games. Thus a Xbox-user might be
expecting an easy way to get the same functionality with the linux driver.

      reply	other threads:[~2008-05-09  0:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-05 10:34 [PATCH 1/2] xpad - Allow mapping D-pad to buttons for all pads Michael Gruber
2008-05-07 15:19 ` Dmitry Torokhov
2008-05-09  0:20   ` Michael Gruber [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=74d457500805081720i36fdc887ue34b7bc7fdef8d86@mail.gmail.com \
    --to=lists.mg@googlemail.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).