summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-06-25 11:41:16 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-06-25 11:41:16 +1000
commitac5fc23e49ffdb0a6f4ab45ef26048f3c414373d (patch)
tree42b991949dde876937b030d7b7abd361d107c8d4 /tools
parent568004d4834535c81ffb627457dff3081ce67f46 (diff)
downloadlibinput-ac5fc23e49ffdb0a6f4ab45ef26048f3c414373d.tar.gz
Drop the deprecated LIBINPUT_POINTER_*_SCROLL enums
We have enough API breakage in this release that it's not worth keeping these around. Every caller must be fixed for all the other stuff anyway, so drop this too. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/event-gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/event-gui.c b/tools/event-gui.c
index 9475e778..234ece93 100644
--- a/tools/event-gui.c
+++ b/tools/event-gui.c
@@ -284,11 +284,11 @@ handle_event_axis(struct libinput_event *ev, struct window *w)
double v = libinput_event_pointer_get_axis_value(p);
switch (axis) {
- case LIBINPUT_POINTER_AXIS_VERTICAL_SCROLL:
+ case LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL:
w->vy += (int)v;
w->vy = clip(w->vy, 0, w->height);
break;
- case LIBINPUT_POINTER_AXIS_HORIZONTAL_SCROLL:
+ case LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL:
w->hx += (int)v;
w->hx = clip(w->hx, 0, w->width);
break;