aboutsummaryrefslogtreecommitdiff
path: root/include/rootston/touch.h
blob: 1624c3ad051ca9934ed8a9f962e15df93d82d8c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _ROOTSTON_TOUCH_H
#define _ROOTSTON_TOUCH_H

#include <wayland-server.h>

struct roots_touch {
	struct roots_input *input;
	struct wlr_input_device *device;
	struct wl_list link;
};

struct roots_touch_point {
	struct roots_touch *device;
	int32_t slot;
	double x, y;
	struct wl_list link;
};

void touch_add(struct wlr_input_device *device, struct roots_input *input);
void touch_remove(struct wlr_input_device *device, struct roots_input *input);

#endif