aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-14 11:40:03 -0400
committerDrew DeVault <sir@cmpwn.com>2017-06-14 11:40:03 -0400
commitd6905f86cb9d430e0ba05c6a066ed350761116d1 (patch)
tree33387ebd6c8993203c408334c691e01439615426 /include/backend
parent7dfc2c28f1870a38357d6adbb48040151f3166b1 (diff)
Allocate wlr_touch devices
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/libinput.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/backend/libinput.h b/include/backend/libinput.h
index 7c318746..dd24fbb0 100644
--- a/include/backend/libinput.h
+++ b/include/backend/libinput.h
@@ -16,7 +16,7 @@ struct wlr_backend_state {
struct libinput *libinput;
struct wl_event_source *input_event;
- list_t *keyboards;
+ list_t *devices;
};
struct wlr_input_device_state {
@@ -46,4 +46,17 @@ void handle_pointer_button(struct libinput_event *event,
void handle_pointer_axis(struct libinput_event *event,
struct libinput_device *device);
+struct wlr_touch *wlr_libinput_touch_create(
+ struct libinput_device *device);
+void handle_touch_down(struct libinput_event *event,
+ struct libinput_device *device);
+void handle_touch_up(struct libinput_event *event,
+ struct libinput_device *device);
+void handle_touch_motion(struct libinput_event *event,
+ struct libinput_device *device);
+void handle_touch_cancel(struct libinput_event *event,
+ struct libinput_device *device);
+void handle_touch_frame(struct libinput_event *event,
+ struct libinput_device *device);
+
#endif