Remove calls to InitValuatorAxisStruct -- these are now handled in dix by
InitValuatorDeviceClass. Add InitProximityClassDeviceStruct call to prepare for tablet support. (cherry picked from commit 1bd980a5b114f5320360943214f8f9f23b29c1e3)
This commit is contained in:
parent
9f56fc5806
commit
19ff23ab0e
|
@ -353,24 +353,8 @@ static int DarwinMouseProc(
|
||||||
InitPointerDeviceStruct( (DevicePtr)pPointer, map, 5,
|
InitPointerDeviceStruct( (DevicePtr)pPointer, map, 5,
|
||||||
GetMotionHistory,
|
GetMotionHistory,
|
||||||
(PtrCtrlProcPtr)NoopDDA,
|
(PtrCtrlProcPtr)NoopDDA,
|
||||||
GetMotionHistorySize(), 2);
|
GetMotionHistorySize(), 5);
|
||||||
|
InitProximityClassDeviceStruct( (DevicePtr)pPointer);
|
||||||
#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
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DEVICE_ON:
|
case DEVICE_ON:
|
||||||
|
|
Loading…
Reference in New Issue