Remove calls to InitValuatorAxisStruct -- these are now handled in dix by

InitValuatorDeviceClass.
Add InitProximityClassDeviceStruct call to prepare for tablet support.
This commit is contained in:
Ben Byer 2008-03-28 18:25:03 -07:00
parent a28b8c23d9
commit 8b5737b3cf

View File

@ -353,24 +353,8 @@ static int DarwinMouseProc(
InitPointerDeviceStruct( (DevicePtr)pPointer, map, 5,
GetMotionHistory,
(PtrCtrlProcPtr)NoopDDA,
GetMotionHistorySize(), 2);
#ifdef XINPUT
InitValuatorAxisStruct( pPointer,
0, // X axis
0, // min value
16000, // max value (fixme screen size?)
1, // resolution (fixme ?)
1, // min resolution
1 ); // max resolution
InitValuatorAxisStruct( pPointer,
1, // X axis
0, // min value
16000, // max value (fixme screen size?)
1, // resolution (fixme ?)
1, // min resolution
1 ); // max resolution
#endif
GetMotionHistorySize(), 5);
InitProximityClassDeviceStruct( (DevicePtr)pPointer);
break;
case DEVICE_ON: