xserver-multidpi/test/xi2
Peter Hutterer 3304bbff9b Input: Add smooth-scrolling support to GetPointerEvents
For scroll wheel support, we used to send buttons 4/5 and 6/7 for
horizontal/vertical positive/negative scroll events.  For touchpads, we
really want more fine-grained scroll values.  GetPointerEvents now
accepts both old-school scroll button presses, and new-style scroll axis
events, while emitting both types of events to support both old and new
clients.

This works with the new XIScrollClass to mark axes as scrolling axes.
Drivers mark any valuators that send scroll events with SetScrollValuator.
(Currently missing: the XIDeviceChangeEvent being sent when a driver changes
a scroll axis at run-time. This can be added later.)

Note: the SCROLL_TYPE enums are intentionally different values to the XI2
proto values to avoid copy/overlapping range bugs.

Co-authored-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
2011-09-30 09:24:18 +10:00
..
.gitignore Update .gitignore as new tests have been added 2011-06-22 10:45:25 -07:00
Makefile.am test: remove glib dependency 2011-04-21 13:43:43 +10:00
protocol-common.c Input: Add smooth-scrolling support to GetPointerEvents 2011-09-30 09:24:18 +10:00
protocol-common.h test/xi2: remove duplicated include 2011-04-25 10:45:34 -07:00
protocol-eventconvert.c Input: Add POINTER_EMULATED flag to GetPointerEvents 2011-09-29 12:26:43 +10:00
protocol-xigetclientpointer.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
protocol-xigetselectedevents.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
protocol-xipassivegrabdevice.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
protocol-xiquerydevice.c Input: Add smooth-scrolling support to GetPointerEvents 2011-09-30 09:24:18 +10:00
protocol-xiquerypointer.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
protocol-xiqueryversion.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
protocol-xiselectevents.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
protocol-xisetclientpointer.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
protocol-xiwarppointer.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00