Documentation for <wlr/types/wlr_input_device.h>

Back to index

Table of contents

enum wlr_button_state

enum wlr_button_state {
	WLR_BUTTON_RELEASED,
	WLR_BUTTON_PRESSED,
};

struct wlr_input_device

struct wlr_input_device {
	enum wlr_input_device_type type;
	unsigned int vendor, product;
	char *name;
	union {
		void *_device;
		struct wlr_keyboard *keyboard;
		struct wlr_pointer *pointer;
		struct wlr_switch *switch_device;
		struct wlr_touch *touch;
		struct wlr_tablet *tablet;
		struct wlr_tablet_pad *tablet_pad;
	} ;
	struct {
		struct wl_signal destroy;
	} events;
	void *data;
};

enum wlr_input_device_type

enum wlr_input_device_type {
	WLR_INPUT_DEVICE_KEYBOARD,
	WLR_INPUT_DEVICE_POINTER,
	WLR_INPUT_DEVICE_TOUCH,
	WLR_INPUT_DEVICE_TABLET_TOOL,
	WLR_INPUT_DEVICE_TABLET_PAD,
	WLR_INPUT_DEVICE_SWITCH,
};