aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-12-15 08:55:32 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-12-15 08:55:32 +1000
commitfed454192ddc4ad94226040c657deb6abea3df88 (patch)
treea8a90db034ea56d63d421d866b7f854bd2b952ff
parentDon't send pointer events for multitouch touchscreen devices (diff)
downloadxf86-input-evdev-fed454192ddc4ad94226040c657deb6abea3df88.tar.gz
xf86-input-evdev-fed454192ddc4ad94226040c657deb6abea3df88.tar.bz2
xf86-input-evdev-fed454192ddc4ad94226040c657deb6abea3df88.zip
Use xf86InitValuatorAxisStruct, the touch-specific version was dropped
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/evdev.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 760f3ce..8adfefd 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1275,11 +1275,12 @@ EvdevAddAbsValuatorClass(DeviceIntPtr device)
if (pEvdev->absinfo[axis].resolution)
resolution = pEvdev->absinfo[axis].resolution * 1000;
- xf86InitTouchValuatorAxisStruct(device, axnum,
- atoms[axnum + pEvdev->num_vals],
- pEvdev->absinfo[axis].minimum,
- pEvdev->absinfo[axis].maximum,
- pEvdev->absinfo[axis].resolution);
+ xf86InitValuatorAxisStruct(device, axnum,
+ atoms[axnum + pEvdev->num_vals],
+ pEvdev->absinfo[axis].minimum,
+ pEvdev->absinfo[axis].maximum,
+ resolution, 0, resolution,
+ Absolute);
}
#endif