libinput/tools
Peter Hutterer 1baf109b40 Change axis events to carry all directions
Sending separate axis events instead of one unified events is limiting,
especially when simultaneously scrolling in both directions and the caller
tries to implement kinetic scrolling.

Take a page from the tablet-support branch and instead implement the axis
event as a generic event that can contain multiple axes simultaneously.

Right now we only have two (scroll) axes and we could easily just check both
for non-zero values. If we want to allow further axes in the future, we need
a check whether an axis is set in an event, that's what
libinput_event_pointer_has_axis to scroll events() is for.

We also need the mask to notify of a scroll stop event, which could otherwise
be confused as a vertical-only or horizontal-only event.

This is an API and ABI break.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2015-01-13 13:54:21 +10:00
..
.gitignore tools: add a tool for GUI-based debugging 2014-06-23 14:53:27 +10:00
event-debug.c Change axis events to carry all directions 2015-01-13 13:54:21 +10:00
event-gui.c Change axis events to carry all directions 2015-01-13 13:54:21 +10:00
Makefile.am tools: use the new shared lib from event-gui 2014-12-23 10:50:31 +10:00
publish-doc tools: fix the publish-doc script 2014-06-16 16:44:34 +10:00
shared.c tools: pass the userdata to the context 2014-12-23 11:14:39 +10:00
shared.h tools: pass the userdata to the context 2014-12-23 11:14:39 +10:00