public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Peter Hutterer <peter.hutterer@who-t.net>
Cc: Chase Douglas <chase.douglas@canonical.com>,
	Chris Bagwell <chris@cnpbagwell.com>,
	Henrik Rydberg <rydberg@euromail.se>,
	Nikolai Kondrashov <spbnick@gmail.com>,
	linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] Documentation: Add evdev type and code definitions
Date: Thu, 24 Mar 2011 23:16:24 -0700	[thread overview]
Message-ID: <20110325061624.GA1973@core.coreip.homeip.net> (raw)
In-Reply-To: <20110325060434.GB24855@barra.bne.redhat.com>

On Fri, Mar 25, 2011 at 04:04:34PM +1000, Peter Hutterer wrote:
> On Thu, Mar 24, 2011 at 10:50:23PM -0700, Dmitry Torokhov wrote:
> > On Fri, Mar 25, 2011 at 10:36:02AM +1000, Peter Hutterer wrote:
> > > On Thu, Mar 24, 2011 at 03:45:51PM -0400, Chase Douglas wrote:
> > > > On 03/24/2011 02:44 PM, Chris Bagwell wrote:
> > > > > Looking good.  Minor comments at end.
> > > > > 
> > > > > On Thu, Mar 24, 2011 at 12:44 PM, Chase Douglas
> > > > > <chase.douglas@canonical.com> wrote:
> > > > >> +Touchscreens:
> > > > >> +----------
> > > > >> +ABS_{X,Y} must be reported with the location of the touch. BTN_TOUCH must be
> > > > >> +used to report when a touch is active on the screen.
> > > > >> +BTN_{MOUSE,LEFT,MIDDLE,RIGHT} must not be reported. BTN_TOOL_<name> events
> > > > >> +should be reported where possible.
> > > > > 
> > > > > Does the real button event restriction solve something?  I know
> > > > > majority of touchscreens are not sending a button today but usually
> > > > > there is a button on the touchscreen frame that I'd image at least
> > > > > some devices hooking it up to touchscreen interface.
> > > > >
> > > > > stylus+touchscreen combo devices are surely going to want to do this.
> > > > 
> > > > Perhaps this should be more clearly for touchscreen-only devices (not
> > > > tablets or a mix). The problem we end up seeing is drivers who use
> > > > BTN_LEFT because they want a touch to generate a primary button press in
> > > > X. I want to prevent people from doing this.
> > > 
> > > suggest that they use BTN_0 instead then?
> > > 
> > 
> > Umm, I'd hope X evdev driver could handle BTN_TOUCH without
> > BTN_LEFT/BTN_0 to indicate primary button. Legacy mode (mousedev)
> > already translateds BTN_TOUCH/BTN_LEFT/BTN_0 into "left PS/2 button".
> 
> evdev treats BTN_TOUCH as button, yes. my comment above refers to additional
> buttons on the tablet that aren't touch. maybe I misread the above though.
> 

I guess it depends on the purpose of the buttons. BTN_LEFT is really a
"primary button" so would not make sense for additional buttons on a
touchscreen. BTN_0 is more like "we have no idea what it is so here you
go" though...

Thanks.

-- 
Dmitry

  reply	other threads:[~2011-03-25  6:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-24 17:44 [PATCH v3] Documentation: Add evdev type and code definitions Chase Douglas
2011-03-24 18:44 ` Chris Bagwell
2011-03-24 19:45   ` Chase Douglas
2011-03-24 20:28     ` Chris Bagwell
2011-03-25  0:36     ` Peter Hutterer
2011-03-25  5:50       ` Dmitry Torokhov
2011-03-25  6:04         ` Peter Hutterer
2011-03-25  6:16           ` Dmitry Torokhov [this message]
2011-03-25  0:42 ` Peter Hutterer
2011-03-25  5:53   ` Dmitry Torokhov

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=20110325061624.GA1973@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=chase.douglas@canonical.com \
    --cc=chris@cnpbagwell.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peter.hutterer@who-t.net \
    --cc=rydberg@euromail.se \
    --cc=spbnick@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