libinput: add support for touchscreen set matrix

My android pad emit a strange touch input from libinput, so need to rotate 270 degree clockwise to fix this.
This commit is contained in:
SnowNF 2024-03-19 22:52:22 +08:00
parent a3144cc5ea
commit 9012a8b384
5 changed files with 27 additions and 8 deletions

View file

@ -23,13 +23,15 @@ struct libinput_category {
int left_handed;
enum libinput_config_tap_state tap;
enum libinput_config_tap_button_map tap_button_map;
int tap_and_drag; /* -1 or libinput_config_drag_state */
int drag_lock; /* -1 or libinput_config_drag_lock_state */
int accel_profile; /* -1 or libinput_config_accel_profile */
int middle_emu; /* -1 or libinput_config_middle_emulation_state */
int dwt; /* -1 or libinput_config_dwt_state */
int click_method; /* -1 or libinput_config_click_method */
int send_events_mode; /* -1 or libinput_config_send_events_mode */
int tap_and_drag; /* -1 or libinput_config_drag_state */
int drag_lock; /* -1 or libinput_config_drag_lock_state */
int accel_profile; /* -1 or libinput_config_accel_profile */
int middle_emu; /* -1 or libinput_config_middle_emulation_state */
int dwt; /* -1 or libinput_config_dwt_state */
int click_method; /* -1 or libinput_config_click_method */
int send_events_mode; /* -1 or libinput_config_send_events_mode */
bool no_calibration_matrix; /* false if have calibration matrix */
float calibration_matrix[6]; /* calibration matrix */
};
enum lab_libinput_device_type get_device_type(const char *s);