mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
17 lines
452 B
C
17 lines
452 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
#define _POSIX_C_SOURCE 200809L
|
|
#include "config/tablet-tool.h"
|
|
#include <strings.h>
|
|
#include <wlr/util/log.h>
|
|
|
|
enum lab_motion
|
|
tablet_parse_motion(const char *name)
|
|
{
|
|
if (!strcasecmp(name, "Absolute")) {
|
|
return LAB_MOTION_ABSOLUTE;
|
|
} else if (!strcasecmp(name, "Relative")) {
|
|
return LAB_MOTION_RELATIVE;
|
|
}
|
|
wlr_log(WLR_ERROR, "Invalid value for tablet motion: %s", name);
|
|
return LAB_MOTION_ABSOLUTE;
|
|
}
|