mirror of
https://github.com/labwc/labwc.git
synced 2025-11-09 13:30:01 -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
17
src/config/tablet-tool.c
Normal file
17
src/config/tablet-tool.c
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#include <strings.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "config/tablet-tool.h"
|
||||
|
||||
enum motion
|
||||
tablet_parse_motion(const char *name)
|
||||
{
|
||||
if (!strcasecmp(name, "Absolute")) {
|
||||
return LAB_TABLET_MOTION_ABSOLUTE;
|
||||
} else if (!strcasecmp(name, "Relative")) {
|
||||
return LAB_TABLET_MOTION_RELATIVE;
|
||||
}
|
||||
wlr_log(WLR_ERROR, "Invalid value for tablet motion: %s", name);
|
||||
return LAB_TABLET_MOTION_ABSOLUTE;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue