6ef59c9843
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. v2: - Consistently use 'cal' instead of 'calb' or 'matrix'. - change devpath into syspath - update copyrights Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> v1 Tested-by: Matt Hoosier <matt.hoosier@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> |
||
---|---|---|
.. | ||
reference | ||
.gitignore | ||
bad-buffer-test.c | ||
config-parser-test.c | ||
devices-test.c | ||
event-test.c | ||
input-timestamps-helper.c | ||
input-timestamps-helper.h | ||
internal-screenshot-test.c | ||
internal-screenshot.ini | ||
ivi_layout-internal-test.c | ||
ivi_layout-test-plugin.c | ||
ivi_layout-test.c | ||
ivi-shell-app-test.c | ||
ivi-test.h | ||
keyboard-test.c | ||
matrix-test.c | ||
plugin-registry-test.c | ||
pointer-test.c | ||
presentation-test.c | ||
roles-test.c | ||
setbacklight.c | ||
string-test.c | ||
subsurface-shot-test.c | ||
subsurface-test.c | ||
surface-global-test.c | ||
surface-screenshot.c | ||
surface-test.c | ||
text-test.c | ||
timespec-test.c | ||
touch-test.c | ||
vertex-clip-test.c | ||
viewporter-test.c | ||
weston-test-client-helper.c | ||
weston-test-client-helper.h | ||
weston-test-desktop-shell.c | ||
weston-test-runner.c | ||
weston-test-runner.h | ||
weston-test.c | ||
weston-tests-env | ||
xwayland-test.c |