aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/evdev.c')
-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