linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Jason Gerecke <killertofu@gmail.com>
Cc: Linux Input <linux-input@vger.kernel.org>
Subject: Re: Proper representation of button touch (as opposed to button press)
Date: Fri, 2 Mar 2012 16:21:38 -0800	[thread overview]
Message-ID: <20120303002137.GA11833@core.coreip.homeip.net> (raw)
In-Reply-To: <CANRwn3QLhpH=W8r1fJ=xB4Dc46kdfaG+5_x0oFbEJYWjTyYyZA@mail.gmail.com>

Hi Jason,

On Fri, Mar 02, 2012 at 10:36:22AM -0800, Jason Gerecke wrote:
> The Intuos5 was just announced, and I'm working on adding support for
> it to the wacom kernel module. One feature new to the Intuos5 is the
> addition of capacitive sensors embedded in the buttons. Each
> ExpressKey (button) has two bits of state: one for the capacitive
> switch and one for the mechanical switch. These bits are synthesized
> into three cases: released, touched, and pressed (the 4th case of
> "pressed with a non-capacitive object" isn't particularly
> interesting). My initial thought was to call input_event() with a
> unique value for the 'touched' case. However, the documentation only
> defines three values for EV_KEY: 0 (released), 1 (pressed), and 2
> (autorepeat).
> 
> Is 'touched' a case we would want to allow for EV_KEY, or should I be
> representing things differently?

Differently please. It looks like you have 2 independent objects there -
one mechanical switch (persistent on/off) and one is a key (pressed
while touched).

Thanks.

-- 
Dmitry

  reply	other threads:[~2012-03-03  0:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-02 18:36 Proper representation of button touch (as opposed to button press) Jason Gerecke
2012-03-03  0:21 ` Dmitry Torokhov [this message]
2012-03-03 15:59   ` Chris Bagwell
2012-03-05 19:36     ` Jason Gerecke
2012-03-05 22:31       ` Chris Bagwell
2012-03-06  0:59         ` Chase Douglas
2012-03-06  8:17       ` Henrik Rydberg

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=20120303002137.GA11833@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=killertofu@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).