mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
libinput: add support for touchscreen set matrix
My android pad emit a strange touch input from libinput, need to rotate it in 270 degree clockwise to fix.
This commit is contained in:
parent
8b8652e2b3
commit
bd4d92bad8
5 changed files with 28 additions and 7 deletions
|
|
@ -237,6 +237,14 @@ configure_libinput(struct wlr_input_device *wlr_input_device)
|
|||
wlr_log(WLR_INFO, "send events mode configured");
|
||||
libinput_device_config_send_events_set_mode(libinput_dev, dc->send_events_mode);
|
||||
}
|
||||
|
||||
if (libinput_device_config_calibration_has_matrix(libinput_dev) == 0
|
||||
|| dc->no_calibration_matrix) {
|
||||
wlr_log(WLR_INFO, "calibration matrix not configured");
|
||||
} else {
|
||||
wlr_log(WLR_INFO, "calibration matrix configured");
|
||||
libinput_device_config_calibration_set_matrix(libinput_dev, dc->calibration_matrix);
|
||||
}
|
||||
}
|
||||
|
||||
static struct wlr_output *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue