"README.rst" did not exist on "1afea31ad819884e1dc86f383faaff227b1b3d30"
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>
Showing
- src/evdev-mt-touchpad-edge-scroll.c 7 additions, 6 deletionssrc/evdev-mt-touchpad-edge-scroll.c
- src/evdev.c 28 additions, 35 deletionssrc/evdev.c
- src/libinput-private.h 2 additions, 2 deletionssrc/libinput-private.h
- src/libinput-util.h 1 addition, 0 deletionssrc/libinput-util.h
- src/libinput.c 37 additions, 12 deletionssrc/libinput.c
- src/libinput.h 13 additions, 9 deletionssrc/libinput.h
- src/libinput.sym 1 addition, 0 deletionssrc/libinput.sym
- test/litest.c 10 additions, 9 deletionstest/litest.c
- test/pointer.c 7 additions, 4 deletionstest/pointer.c
- test/touchpad.c 9 additions, 7 deletionstest/touchpad.c
- tools/event-debug.c 11 additions, 17 deletionstools/event-debug.c
- tools/event-gui.c 9 additions, 9 deletionstools/event-gui.c
Loading
Please register or sign in to comment