diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-10-25 10:39:38 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-11-02 09:15:26 +1000 |
commit | 57193777374dd10a920171670a06b7e79d389703 (patch) | |
tree | 6cd6b710a53162c3d18780332d65aad9985447b5 | |
parent | 61aa201dabe9aa46dadd1a9dc08eadab878cd09c (diff) |
Input API 12 requires a valuator mode for each axis.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
-rw-r--r-- | src/synaptics.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/synaptics.c b/src/synaptics.c index e6ee943..f64a081 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -1051,7 +1051,11 @@ DeviceInit(DeviceIntPtr dev) #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 axes_labels[0], #endif - min, max, priv->resx * 1000, 0, priv->resx * 1000); + min, max, priv->resx * 1000, 0, priv->resx * 1000 +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12 + , Relative +#endif + ); xf86InitValuatorDefaults(dev, 0); /* Y valuator */ @@ -1069,7 +1073,11 @@ DeviceInit(DeviceIntPtr dev) #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 axes_labels[1], #endif - min, max, priv->resy * 1000, 0, priv->resy * 1000); + min, max, priv->resy * 1000, 0, priv->resy * 1000 +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12 + , Relative +#endif + ); xf86InitValuatorDefaults(dev, 1); if (!alloc_param_data(pInfo)) |