This code snippet may have come from ecore_drm_evdev.c in efl.
(commit:
33e3e9c8a23a78c789a011d262862867c823b001)
However, since we obtain touch coordinates with respect to output w/h
using libinput_event_touch_get_x_transformed(event, width),
a transformation matrix should remain in origin.
Change-Id: I0e5933069934156d27939e0ebcf1b7c97ab19d46
ELOGF("E_INPUT_EVDEV", "calibration_set cal[%lf %lf %lf %lf %lf %lf] (%d x %d)",
NULL, cal[0], cal[1], cal[2], cal[3], cal[4], cal[5], w, h);
- cal[2] /= w;
- cal[5] /= h;
status =
libinput_device_config_calibration_set_matrix(edev->device, cal);