Thread (14 messages) flat view 14 messages, 6 authors, 2011-08-03

Re: [PATCH 3/4] Fix hover in Android (Gingerbread)

From: Jeffrey Brown <hidden>
Date: 2011-07-09 06:15:50

On Thu, Jul 7, 2011 at 2:04 PM, Jason Gerecke [off-list ref] wrote:
As of Gingerbread, Android does not pay attention to if the pen
is in contact with the screen, or merely in proximity. Since the
Xorg Wacom driver does not make use of MT pen events, we simply
do not emit MT data while hovering.
I'd rather not change the behavior of the upstream driver because that
would break other things.  It would be better to just fix the Android
framework code for the device you are shipping.

What is it about Gingerbread that causes problems with hover?  Is it
the fact it isn't checking BTN_TOUCH or the fact that it doesn't care
when ABS_MT_PRESSURE == 0?  (Is BTN_TOUCH still relevant to the MT
protocol or only in single-touch?)

I have already added hover support to Android.  It will appear in an
upcoming release, along with support for the MT slots protocol "B".

Sending a non-zero ABS_MT_DISTANCE is also a good robust hint for
hover.  Zero pressure can be ambiguous sometimes.

Who did you talk to at Google about this?

Jeff.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help