[PATCH libinput v5 5/5] libinput: add orientation and size of touch point and pressure to the API

Bill Spitzak spitzak at gmail.com
Thu Jul 9 13:01:51 PDT 2015

On Wed, Jul 8, 2015 at 11:38 PM, Peter Hutterer <peter.hutterer at who-t.net>

> and since we say that we normalize to [0, 1], the _correct_ value is 1 when
> we have a touch. it makes client code more straightforward because you can
> rely on the value being useful.

> if clients end up needing to know whether there is pressure, a
> event_touch_has_pressure() is probably the best option.

I would think the chances that a touch-capable panel manages to never
return a value other than 1 is low, and thus a client can probably figure
it out be checking whether it ever got a value != 1.0.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20150709/5046b289/attachment.html>

More information about the wayland-devel mailing list