diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-11-02 20:13:10 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-11-02 20:31:19 -0400 |
commit | 53021f8ed428a1a023769339e6162bfebbe4c7a2 (patch) | |
tree | e7b29dc916ba6e35d8adc8e8225ba3b4e24f53ad /include/rootston/touch.h | |
parent | 80b4a2f64c51de4a257182e381977710a5fbeb10 (diff) |
rootston: break up input.h
Diffstat (limited to 'include/rootston/touch.h')
-rw-r--r-- | include/rootston/touch.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/rootston/touch.h b/include/rootston/touch.h new file mode 100644 index 00000000..1624c3ad --- /dev/null +++ b/include/rootston/touch.h @@ -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 |