mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-16 06:59:44 -05:00
rootston: break up input.h
This commit is contained in:
parent
80b4a2f64c
commit
53021f8ed4
12 changed files with 93 additions and 52 deletions
22
include/rootston/touch.h
Normal file
22
include/rootston/touch.h
Normal file
|
|
@ -0,0 +1,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
|
||||
Loading…
Add table
Add a link
Reference in a new issue