Implement clickfinger_button_map support.

This commit is contained in:
Tarcísio Eduardo Moreira Crocomo 2024-04-10 18:01:50 -03:00 committed by Simon Ser
parent 818ea17389
commit 5be5a50051
10 changed files with 74 additions and 3 deletions

View file

@ -28,6 +28,7 @@ struct input_config *new_input_config(const char* identifier) {
input->dwtp = INT_MIN;
input->send_events = INT_MIN;
input->click_method = INT_MIN;
input->clickfinger_button_map = INT_MIN;
input->middle_emulation = INT_MIN;
input->natural_scroll = INT_MIN;
input->accel_profile = INT_MIN;
@ -55,6 +56,9 @@ void merge_input_config(struct input_config *dst, struct input_config *src) {
if (src->click_method != INT_MIN) {
dst->click_method = src->click_method;
}
if (src->clickfinger_button_map != INT_MIN) {
dst->clickfinger_button_map = src->clickfinger_button_map;
}
if (src->drag != INT_MIN) {
dst->drag = src->drag;
}