labwc/include/config/libinput.h

36 lines
928 B
C
Raw Normal View History

2021-11-13 21:56:53 +00:00
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_LIBINPUT_H
#define LABWC_LIBINPUT_H
2021-10-15 12:27:52 -04:00
#include <libinput.h>
#include <string.h>
#include <wayland-server-core.h>
enum device_type {
DEFAULT_DEVICE,
TOUCH_DEVICE,
NON_TOUCH_DEVICE,
};
struct libinput_category {
enum device_type type;
char *name;
struct wl_list link;
float pointer_speed;
int natural_scroll;
int left_handed;
enum libinput_config_tap_state tap;
enum libinput_config_tap_button_map tap_button_map;
enum libinput_config_drag_state tap_and_drag;
enum libinput_config_drag_lock_state drag_lock;
2021-10-15 12:27:52 -04:00
enum libinput_config_accel_profile accel_profile;
enum libinput_config_middle_emulation_state middle_emu;
enum libinput_config_dwt_state dwt;
};
enum device_type get_device_type(const char *s);
2021-10-15 20:52:36 +01:00
struct libinput_category *libinput_category_create(void);
struct libinput_category *libinput_category_get_default(void);
2021-10-15 12:27:52 -04:00
#endif /* LABWC_LIBINPUT_H */