labwc/include/config/libinput.h
Tomi Ollila 7ad5200f2e includes: identifier consistency in include guards
Made all header files to have LABWC_ prefix in include guard identifers.

Converted from __LABWC_ in 35 include/ files.
Converted from __LAB_ in 5 include/ files.
Added LABWC prefix to 3 include/ files.
Added include guards to 3 include/ files.

The double underscores were removed since according to C standard
those "are always reserved for any use".
2023-05-13 22:29:21 +01:00

33 lines
832 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_LIBINPUT_H
#define LABWC_LIBINPUT_H
#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_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);
struct libinput_category *libinput_category_create(void);
struct libinput_category *libinput_category_get_default(void);
#endif /* LABWC_LIBINPUT_H */