diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-06-14 11:40:03 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-06-14 11:40:03 -0400 |
commit | d6905f86cb9d430e0ba05c6a066ed350761116d1 (patch) | |
tree | 33387ebd6c8993203c408334c691e01439615426 /include/wlr | |
parent | 7dfc2c28f1870a38357d6adbb48040151f3166b1 (diff) |
Allocate wlr_touch devices
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/wlr/types.h b/include/wlr/types.h index af23152c..b4d69ccb 100644 --- a/include/wlr/types.h +++ b/include/wlr/types.h @@ -134,7 +134,22 @@ struct wlr_pointer_axis { double delta; }; -// TODO: touch +struct wlr_touch_state; +struct wlr_touch_impl; + +struct wlr_touch { + struct wlr_touch_state *state; + struct wlr_touch_impl *impl; + + struct { + struct wl_signal down; + struct wl_signal up; + struct wl_signal motion; + struct wl_signal cancel; + struct wl_signal frame; + } events; +}; + // TODO: tablet & tablet tool // TODO: gestures // TODO: switch @@ -164,6 +179,7 @@ struct wlr_input_device { void *_device; struct wlr_keyboard *keyboard; struct wlr_pointer *pointer; + struct wlr_touch *touch; }; }; |