mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
implement libinput tapButtonMap setting
this is a standard libinput setting that was not previously exposed
This commit is contained in:
parent
859495a8be
commit
a3796fa6f3
4 changed files with 11 additions and 0 deletions
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue