On Mon, 9 Apr 2018 11:55:51 +1000 Peter Hutterer <peter.hutte...@who-t.net> wrote:
> On Fri, Mar 23, 2018 at 02:00:52PM +0200, Pekka Paalanen wrote: > > From: Louis-Francis Ratté-Boulianne <l...@collabora.com> > > > > Introduce weston_touch_device for libweston core to track individual > > touchscreen input devices. A weston_seat/weston_touch may be an > > aggregation of several physical touchscreen input devices. Separating > > the physical devices will be required for implementing touchscreen > > calibration. One can only calibrate one device at a time, and we want to > > make sure to handle the right one. > > > > Both backends that support touch devices are updated to create > > weston_touch_devices. Wayland-backend provides touch devices that cannot > > be calibrated, because we have no access to raw touch coordinates from > > the device - calibration is the responsibility of the parent display > > server. Libinput backend provides touch devices that can be calibrated, > > hence implementing the set and get calibration hooks. > > > > Backends need to maintain an output pointer in any case, so we have a > > get_output() hook instead of having to maintain an identical field in > > weston_touch_device. The same justification applies to > > get_calibration_head_name. > > > > Also update the test plugin to manage weston_touch_device objects. > > > > Co-developed by Louis-Francis and Pekka. > > just a little nit: you're going to make the world an every so slightly > angrier place by choosing "calb" instead of "calib" or "cal" as shortcut for > "calibration" :) > > I predict that almost everyone working on that code will mistype that the > first few times around. Right, I can try to think of another name for the calibration matrix local variable. Thanks, pq
pgpaBCli1X83x.pgp
Description: OpenPGP digital signature
_______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel