All of lore.kernel.org
 help / color / mirror / Atom feed
* Proper representation of button touch (as opposed to button press)
@ 2012-03-02 18:36 Jason Gerecke
  2012-03-03  0:21 ` Dmitry Torokhov
  0 siblings, 1 reply; 7+ messages in thread
From: Jason Gerecke @ 2012-03-02 18:36 UTC (permalink / raw)
  To: Linux Input; +Cc: Dmitry Torokhov

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?

Jason

---
Day xee-nee-svsh duu-'ushtlh-ts'it;
nuu-wee-ya' duu-xan' 'vm-nvshtlh-ts'it.
Huu-chan xuu naa~-gha.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-06  8:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02 18:36 Proper representation of button touch (as opposed to button press) Jason Gerecke
2012-03-03  0:21 ` Dmitry Torokhov
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.