Change calibration into a configuration option
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 26 Aug 2014 01:41:19 +0000 (11:41 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 1 Sep 2014 01:23:54 +0000 (11:23 +1000)
commitea00ff9114c100e83689dfdc143ddb3891efc26d
tree7208d5d66a8973cb6d1f9ae20269348a11f774d2
parenta888a7a61c0dfc1e6cf70747e05d343cddcb616a
Change calibration into a configuration option

New configuration API:
libinput_device_config_calibration_has_matrix()
libinput_device_config_calibration_set_matrix()
libinput_device_config_calibration_get_matrix()
libinput_device_config_calibration_get_default_matrix()

Deprecates libinput_device_calibrate().

For coordinate transformation, we're using a precalculated matrix. Thus, to
support ..._get_matrix() we need to store the original user-specified matrix
separately, in an unmangled state.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/evdev.c
src/evdev.h
src/libinput-private.h
src/libinput.c
src/libinput.h
test/pointer.c
test/touch.c