port all users to the new DIX motion history API

Port KDrive, Xvfb, and Xnest, as well as the virtual core devices, to the
new motion history API.  Make GetPointerEvents also update the history.
This commit is contained in:
Daniel Stone 2006-10-25 01:09:19 +03:00 • committed by Daniel Stone
commit b9e180e632
5 changed files with 10 additions and 11 deletions

View file

@ -285,10 +285,9 @@ CorePointerProc(DeviceIntPtr pDev, int what)
case DEVICE_INIT:
for (i = 1; i <= 32; i++)
map[i] = i;
/* we don't keep history, for now. */
InitPointerDeviceStruct((DevicePtr)pDev, map, 32,
NULL, (PtrCtrlProcPtr)NoopDDA,
0, 2);
GetMotionHistory, (PtrCtrlProcPtr)NoopDDA,
GetMotionHistorySize(), 2);
pDev->valuator->axisVal[0] = screenInfo.screens[0]->width / 2;
pDev->valuator->lastx = pDev->valuator->axisVal[0];
pDev->valuator->axisVal[1] = screenInfo.screens[0]->height / 2;