linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Dillow <dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
To: Antonio Ospite
	<ospite-aNJ+ML1ZbiP93QAQaVx+gl6hYfS7NtTn@public.gmane.org>
Cc: linux-bluetooth-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	David Herrmann
	<dh.herrmann-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>,
	Luiz Augusto von Dentz
	<luiz.dentz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Bastien Nocera <hadess-0MeiytkfxGOsTnJN9+BGXg@public.gmane.org>,
	linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	jkosina-AlSwsSmVLrQ@public.gmane.org
Subject: Re: [RFC, PATCH] hid-ps3remote: handle multiple keypresses for joypad buttons
Date: Mon, 24 Sep 2012 09:56:42 -0400	[thread overview]
Message-ID: <1348495002.7637.4.camel@obelisk.thedillows.org> (raw)
In-Reply-To: <1348485938-20510-1-git-send-email-ospite-aNJ+ML1ZbiP93QAQaVx+gl6hYfS7NtTn@public.gmane.org>

On Mon, 2012-09-24 at 13:25 +0200, Antonio Ospite wrote:
> In order to make this work I have to put joypad buttons only in one of
> the key maps, I don't know if that is compatible with the Harmony
> adapter.

I suspect it is, but I'll try to test later tonight. Feel free to merge
my patch and yours and push it upstream under your name/copyright; I'm
not attached to it.

> diff --git a/drivers/hid/hid-ps3remote.c b/drivers/hid/hid-ps3remote.c
> index 11a6c1f..fa2e50d 100644
> --- a/drivers/hid/hid-ps3remote.c
> +++ b/drivers/hid/hid-ps3remote.c
> @@ -49,6 +49,26 @@
>   * The keymap is generally ordered by the physical location of the buttons,
>   * as this makes it easier to verify a correct mapping during testing.
>   */

You'd have caught this in cleanup, I'm sure, but the above comment no
longer makes sense.

> +static const unsigned int ps3remote_keymap_1[] = {

Probably want a better name -- again, something I'm sure you would have
done during cleanup of this proof-of-concept.

>  static const unsigned int ps3remote_keymap[] = {

This map probably should now be ordered per David H. since we're no
longer following the physical layout.

Thanks,
Dave

  parent reply	other threads:[~2012-09-24 13:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1346378760.7976.2.camel@obelisk.thedillows.org>
     [not found] ` <20120907124559.GA16092@x220>
     [not found]   ` <CABBYNZ+5E+BC-+9fj0e7iUpEDFJrJBQo8aoMZj8ZEkmiuB=QLA@mail.gmail.com>
     [not found]     ` <1347284864.3532.1.camel@sirocco.hadess.net>
     [not found]       ` <CABBYNZJpHkt8CGDsfVwirZ=vecb-fhbpPbrVFKt1UR_rA25mSw@mail.gmail.com>
     [not found]         ` <CABBYNZ+n9obON7iNcv66x2ZVQCeTs_JoJUDXZFwxJJ6C4cb4YQ@mail.gmail.com>
     [not found]           ` <CABBYNZKggzJ7bzQWVmWi30kxOUR8bVCyMLL=SM1=Oe74YPwvKg@mail.gmail.com>
     [not found]             ` <1347394656.1606.10.camel@sirocco.hadess.net>
     [not found]               ` <CABBYNZ+gpheC9sNeTp2uvDFBV-yPs+cY4PUR2omPt_kLTCafKw@mail.gmail.com>
     [not found]                 ` <1347456657.23874.29.camel@sirocco.hadess.net>
     [not found]                   ` <CABBYNZLwXhF0gixPGKUTJY4sZ7EHynTYmHzGtiZsoRGXgeEFaw@mail.gmail.com>
     [not found]                     ` <CANq1E4SDXVHcumBbEA-4xpeuOQ0SjDxxtL_RqAiNYRPj6ccagQ@mail.gmail.com>
     [not found]                       ` <20120913003628.ce5babb2a66d09fe17fa15de@studenti.unina.it>
     [not found]                         ` <1347591892.6145.14.camel@obelisk.thedillows.org>
     [not found]                           ` <20120917120441.a164d2e10bb02aa9a1e8d523@studenti.unina.it>
     [not found]                             ` <1347929527.29391.9.camel@obelisk.thedillows.org>
     [not found]                               ` <1347929527.29391.9.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2012-09-18  1:33                                 ` [PATCH v2] HID: Add support for Sony PS3 BD Remote Control David Dillow
     [not found]                                   ` <1347932038.29391.17.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2012-09-19 16:48                                     ` Antonio Ospite
     [not found]                                       ` <20120919184834.8093076c520dba2dc91c2f5d-aNJ+ML1ZbiP93QAQaVx+gl6hYfS7NtTn@public.gmane.org>
2012-09-19 16:59                                         ` David Dillow
     [not found]                                           ` <1348073986.10827.21.camel-zHLflQxYYDO4Hhoo1DtQwJ9G+ZOsUmrO@public.gmane.org>
2012-09-21 20:06                                             ` Antonio Ospite
2012-09-21 20:45                                               ` Bastien Nocera
2012-09-24 11:25                                               ` [RFC, PATCH] hid-ps3remote: handle multiple keypresses for joypad buttons Antonio Ospite
2012-09-24 11:32                                                 ` Bastien Nocera
     [not found]                                                 ` <1348485938-20510-1-git-send-email-ospite-aNJ+ML1ZbiP93QAQaVx+gl6hYfS7NtTn@public.gmane.org>
2012-09-24 13:56                                                   ` David Dillow [this message]
     [not found]                                                     ` <1348495002.7637.4.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2012-09-25  2:13                                                       ` David Dillow
     [not found]                                                         ` <1348539215.15050.6.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2012-09-25 11:21                                                           ` Antonio Ospite
2012-09-25 14:30                                                             ` [PATCH v3] HID: Add support for Sony PS3 BD Remote Control Antonio Ospite
2012-09-25 14:43                                                               ` David Dillow
     [not found]                                                                 ` <1348584182.27596.28.camel-zHLflQxYYDO4Hhoo1DtQwJ9G+ZOsUmrO@public.gmane.org>
2012-09-25 21:02                                                                   ` [PATCH v4] " Antonio Ospite
2012-10-01  8:12                                                                     ` Jiri Kosina
     [not found]                                                                     ` <1348606947-3055-1-git-send-email-ospite-aNJ+ML1ZbiP93QAQaVx+gl6hYfS7NtTn@public.gmane.org>
2012-10-01  8:19                                                                       ` Antonio Ospite
2012-10-01  8:24                                                                         ` Jiri Kosina
2012-10-01  8:40                                                                           ` Antonio Ospite
2012-09-19 17:05                                       ` [PATCH v2] " Bastien Nocera

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=1348495002.7637.4.camel@obelisk.thedillows.org \
    --to=dave-i1mk8jydvaasihdk6806/g@public.gmane.org \
    --cc=dh.herrmann-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org \
    --cc=hadess-0MeiytkfxGOsTnJN9+BGXg@public.gmane.org \
    --cc=jkosina-AlSwsSmVLrQ@public.gmane.org \
    --cc=linux-bluetooth-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=luiz.dentz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=ospite-aNJ+ML1ZbiP93QAQaVx+gl6hYfS7NtTn@public.gmane.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).