implement libinput tapButtonMap setting

this is a standard libinput setting that was not previously exposed
This commit is contained in:
bi4k8 2021-12-12 22:12:30 +00:00 committed by ARDiDo
parent 859495a8be
commit a3796fa6f3
4 changed files with 11 additions and 0 deletions

View file

@ -177,6 +177,14 @@ fill_libinput_category(char *nodename, char *content)
current_libinput_category->tap = get_bool(content) ?
LIBINPUT_CONFIG_TAP_ENABLED :
LIBINPUT_CONFIG_TAP_DISABLED;
} else if (!strcasecmp(nodename, "tapButtonMap")) {
if (!strcmp(content, "lrm")) {
current_libinput_category->tap_button_map = LIBINPUT_CONFIG_TAP_MAP_LRM;
} else if (!strcmp(content, "lmr")) {
current_libinput_category->tap_button_map = LIBINPUT_CONFIG_TAP_MAP_LMR;
} else {
wlr_log(WLR_ERROR, "invalid tapButtonMap");
}
} else if (!strcasecmp(nodename, "accelProfile")) {
current_libinput_category->accel_profile = get_accel_profile(content);
} else if (!strcasecmp(nodename, "middleEmulation")) {