mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-24 01:34:04 +00:00
Use xf86InitValuatorAxisStruct, the touch-specific version was dropped
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
11
src/evdev.c
11
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user