diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-10-25 02:22:46 +0300 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-10-25 02:22:46 +0300 |
commit | 036b457c1b3f7d2d174da890cb8598d907181f8e (patch) | |
tree | ec9927af299ff516969553b29278d59581b0418f /src/evdev.c | |
parent | Merge branch 'input-hotplug' of git+ssh://git.freedesktop.org/git/xorg/driver... (diff) | |
download | xf86-input-evdev-036b457c1b3f7d2d174da890cb8598d907181f8e.tar.gz xf86-input-evdev-036b457c1b3f7d2d174da890cb8598d907181f8e.tar.bz2 xf86-input-evdev-036b457c1b3f7d2d174da890cb8598d907181f8e.zip |
support new DIX motion history API
Use the DIX motion history if we have ABI version 1 or higher.
Diffstat (limited to 'src/evdev.c')
-rw-r--r-- | src/evdev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c index f2d61f6..1bcaef8 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -273,7 +273,9 @@ EvdevNew(evdevDriverPtr driver, evdevDevicePtr device) pInfo->device_control = EvdevProc; pInfo->read_input = EvdevReadInput; pInfo->switch_mode = EvdevSwitchMode; +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0 pInfo->motion_history_proc = xf86GetMotionEvents; +#endif pInfo->conf_idev = driver->dev; pInfo->private = device; |