mirror of
https://github.com/labwc/labwc.git
synced 2026-02-18 22:05:32 -05:00
config: add configuration for tablet tool motion
This commit is contained in:
parent
8501a1281c
commit
a2f25bea1a
7 changed files with 41 additions and 7 deletions
|
|
@ -1061,6 +1061,8 @@ entry(xmlNode *node, char *nodename, char *content)
|
|||
} else {
|
||||
wlr_log(WLR_ERROR, "Missing 'button' argument for tablet button mapping");
|
||||
}
|
||||
} else if (!strcasecmp(nodename, "motion.tabletTool")) {
|
||||
rc.tablet_tool.motion = tablet_parse_motion(content);
|
||||
} else if (!strcasecmp(nodename, "ignoreButtonReleasePeriod.menu")) {
|
||||
rc.menu_ignore_button_release_period = atoi(content);
|
||||
} else if (!strcasecmp(nodename, "width.magnifier")) {
|
||||
|
|
@ -1258,6 +1260,7 @@ rcxml_init(void)
|
|||
rc.tablet.rotation = 0;
|
||||
rc.tablet.box = (struct wlr_fbox){0};
|
||||
tablet_load_default_button_mappings();
|
||||
rc.tablet_tool.motion = LAB_TABLET_MOTION_ABSOLUTE;
|
||||
|
||||
rc.repeat_rate = 25;
|
||||
rc.repeat_delay = 600;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue