#include <string.h>
#include <wayland-server-core.h>
-enum device_type {
+enum lab_libinput_device_type {
LAB_LIBINPUT_DEVICE_NONE = 0,
LAB_LIBINPUT_DEVICE_DEFAULT,
LAB_LIBINPUT_DEVICE_TOUCH,
};
struct libinput_category {
- enum device_type type;
+ enum lab_libinput_device_type type;
char *name;
struct wl_list link;
float pointer_speed;
int dwt; /* -1 or libinput_config_dwt_state */
};
-enum device_type get_device_type(const char *s);
+enum lab_libinput_device_type get_device_type(const char *s);
struct libinput_category *libinput_category_create(void);
struct libinput_category *libinput_category_get_default(void);
free(input);
}
-static enum device_type
+static enum lab_libinput_device_type
device_type_from_wlr_device(struct wlr_input_device *wlr_input_device)
{
switch (wlr_input_device->type) {
}
/* By type */
- enum device_type type = device_type_from_wlr_device(device);
+ enum lab_libinput_device_type type = device_type_from_wlr_device(device);
wl_list_for_each_reverse(category, &rc.libinput_categories, link) {
if (category->type == type) {
return category;