From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Thomaz de Oliveira dos Reis <thor27@gmail.com>,
Mag <magissia@magissia.com>, Ilia Katsnelson <k0009000@gmail.com>
Cc: Linux Input <linux-input@vger.kernel.org>
Subject: Re: Changes on xpad.c
Date: Wed, 1 Jan 2014 11:24:02 -0800 [thread overview]
Message-ID: <20140101192402.GB30798@core.coreip.homeip.net> (raw)
In-Reply-To: <CAAXmX-ma_xX-AVbBJ-DeOQL09T6ZkE9wsN1R1MTuu=rHxwm58Q@mail.gmail.com>
Hi Thomaz, Nol, Ilia,
Happy New Year!
On Thu, Dec 26, 2013 at 10:07:58PM -0200, Thomaz de Oliveira dos Reis wrote:
> Hi!
>
> Hope it is correct.
You forgot to add "Signed-off-by: ..." to your change.
Ilia, Nol, you have added the initial mappings for Razer devices and
chose to map directional pad to buttons instead of HAT0X/Y axis. Could
you remind me why?
Thanks!
> 2013/12/26 Dmitry Torokhov <dmitry.torokhov@gmail.com>
>
> > Hi Tomaz,
> >
> > On Sat, Dec 21, 2013 at 09:48:12PM -0200, Thomaz de Oliveira dos Reis
> > wrote:
> > > Hi!
> > >
> > > I noticed that Razer Onza controller, different from tradional xbox
> > > gamepad, the dpad doesn't works in most games. (Some games is possibile
> > to
> > > configure changing a config file or with interface options but many games
> > > it doesn't works at all)
> > >
> > > Looking at module source code, I saw that it uses the
> > MAP_DPAD_TO_BUTTONS
> > > that was created to use with dance pad (with this controller is not), as
> > > written on this comment:
> > >
> > > Line 69: * - dance pads will map D-PAD to buttons, not axes
> > >
> > > Change this to 0 improve overal compatibility of the controller in most
> > > games, without losing any meaningful functionality.
> > >
> > > Also, if someone REALLY need this strange configuration, the user can set
> > > the "dpad_to_buttons" module param as described here:
> > >
> > > Line 103: MODULE_PARM_DESC(dpad_to_buttons, "Map D-PAD to buttons rather
> > > than axes for unknown pads");
> > >
> > > Attached the modified xpad.c module, downloaded from linux-next git file
> > > from today.
> >
> > Please generate a unified diff for your change. See
> > Documentation/SubmittngPatches for explanation how to do this.
> >
> > Thanks.
> >
> >
> > --
> > Dmitry
> >
> --- drivers/input/joystick/xpad.c.orig 2013-12-26 22:02:44.239687200 -0200
> +++ drivers/input/joystick/xpad.c 2013-12-26 22:03:13.199687196 -0200
> @@ -166,8 +166,8 @@ static const struct xpad_device {
> { 0x1430, 0x4748, "RedOctane Guitar Hero X-plorer", 0, XTYPE_XBOX360 },
> { 0x1430, 0x8888, "TX6500+ Dance Pad (first generation)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
> { 0x146b, 0x0601, "BigBen Interactive XBOX 360 Controller", 0, XTYPE_XBOX360 },
> - { 0x1689, 0xfd00, "Razer Onza Tournament Edition", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
> - { 0x1689, 0xfd01, "Razer Onza Classic Edition", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
> + { 0x1689, 0xfd00, "Razer Onza Tournament Edition", 0, XTYPE_XBOX360 },
> + { 0x1689, 0xfd01, "Razer Onza Classic Edition", 0, XTYPE_XBOX360 },
> { 0x1bad, 0x0002, "Harmonix Rock Band Guitar", 0, XTYPE_XBOX360 },
> { 0x1bad, 0x0003, "Harmonix Rock Band Drumkit", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
> { 0x1bad, 0xf016, "Mad Catz Xbox 360 Controller", 0, XTYPE_XBOX360 },
--
Dmitry
parent reply other threads:[~2014-01-01 19:24 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <CAAXmX-ma_xX-AVbBJ-DeOQL09T6ZkE9wsN1R1MTuu=rHxwm58Q@mail.gmail.com>]
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=20140101192402.GB30798@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=k0009000@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=magissia@magissia.com \
--cc=thor27@gmail.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