mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-06 15:43:32 +00:00
Check for XINPUT ABI < 3 (corrected version)
Thanks to Sven Wegener for pointing out the incorrect previous version.
This commit is contained in:
10
src/evdev.c
10
src/evdev.c
@@ -726,7 +726,10 @@ EvdevAddAbsClass(DeviceIntPtr device)
|
||||
pEvdev->min_y = absinfo_y.minimum;
|
||||
pEvdev->max_y = absinfo_y.maximum;
|
||||
|
||||
if (!InitValuatorClassDeviceStruct(device, 2, GetMotionHistory,
|
||||
if (!InitValuatorClassDeviceStruct(device, 2,
|
||||
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
|
||||
GetMotionHistory,
|
||||
#endif
|
||||
GetMotionHistorySize(), Absolute))
|
||||
return !Success;
|
||||
|
||||
@@ -756,7 +759,10 @@ EvdevAddRelClass(DeviceIntPtr device)
|
||||
|
||||
pInfo = device->public.devicePrivate;
|
||||
|
||||
if (!InitValuatorClassDeviceStruct(device, 2, GetMotionHistory,
|
||||
if (!InitValuatorClassDeviceStruct(device, 2,
|
||||
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
|
||||
GetMotionHistory,
|
||||
#endif
|
||||
GetMotionHistorySize(), Relative))
|
||||
return !Success;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user