calibrator: Make mouse button optional
authorFabien Lahoudere <fabien.lahoudere@collabora.co.uk>
Thu, 7 Sep 2017 13:11:58 +0000 (15:11 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 18 Sep 2017 09:16:49 +0000 (12:16 +0300)
commite80bdcdad2082b6710f9a47c355f8ace20ed788b
treeea8c7871346358c710e12b981189d8f0ffc04250
parentc05ee89ab0c08eab4c3a839be6181513cc4852a4
calibrator: Make mouse button optional

When calibrating touchscreen with weston-calibrator, you can use the mouse to
click on the cross which is recorded as a touch event. This event is used to
compute the final calibration of the touchscreen which results in invalid
touchscreen calibration and broken touchscreen behaviour.

In order to avoid to use the mouse in weston-calibrator, we disable mouse
operation by default and add a parameter "--enable-mouse" to enable it.

Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
clients/calibrator.c