Input: Add vertical and horizontal scroll axes
To be used for smooth scrolling with future driver APIs, replacing Rel Vert Wheel and Rel Horiz Wheel axes, which have not been used in any open driver to date. Combined with double-granularity ValuatorMasks, these axes allow for fine-grained scroll data to be sent to clients. Future commits allow drivers to post these scroll axes to QueuePointerEvents/GetPointerEvents, which take care of emulating legacy scroll button events. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
d8e42decba
commit
78d8d6dd7f
|
@ -52,11 +52,14 @@ static struct dev_properties
|
|||
} dev_properties[] = {
|
||||
{0, XI_PROP_ENABLED},
|
||||
{0, XI_PROP_XTEST_DEVICE},
|
||||
|
||||
{0, XATOM_FLOAT},
|
||||
|
||||
{0, ACCEL_PROP_PROFILE_NUMBER},
|
||||
{0, ACCEL_PROP_CONSTANT_DECELERATION},
|
||||
{0, ACCEL_PROP_ADAPTIVE_DECELERATION},
|
||||
{0, ACCEL_PROP_VELOCITY_SCALING},
|
||||
|
||||
{0, AXIS_LABEL_PROP},
|
||||
{0, AXIS_LABEL_PROP_REL_X},
|
||||
{0, AXIS_LABEL_PROP_REL_Y},
|
||||
|
@ -68,6 +71,8 @@ static struct dev_properties
|
|||
{0, AXIS_LABEL_PROP_REL_DIAL},
|
||||
{0, AXIS_LABEL_PROP_REL_WHEEL},
|
||||
{0, AXIS_LABEL_PROP_REL_MISC},
|
||||
{0, AXIS_LABEL_PROP_REL_VSCROLL},
|
||||
{0, AXIS_LABEL_PROP_REL_HSCROLL},
|
||||
{0, AXIS_LABEL_PROP_ABS_X},
|
||||
{0, AXIS_LABEL_PROP_ABS_Y},
|
||||
{0, AXIS_LABEL_PROP_ABS_Z},
|
||||
|
|
|
@ -77,6 +77,8 @@
|
|||
#define AXIS_LABEL_PROP_REL_DIAL "Rel Dial"
|
||||
#define AXIS_LABEL_PROP_REL_WHEEL "Rel Vert Wheel"
|
||||
#define AXIS_LABEL_PROP_REL_MISC "Rel Misc"
|
||||
#define AXIS_LABEL_PROP_REL_VSCROLL "Rel Vert Scroll"
|
||||
#define AXIS_LABEL_PROP_REL_HSCROLL "Rel Horiz Scroll"
|
||||
|
||||
/*
|
||||
* Absolute axes
|
||||
|
|
Loading…
Reference in New Issue
Block a user