diff options
author | Philip Langdale <philipl@fido2.homeip.net> | 2008-10-17 19:41:07 -0700 |
---|---|---|
committer | Philip Langdale <philipl@fido2.homeip.net> | 2008-10-17 19:41:07 -0700 |
commit | 64760dae6b1184405641b6b46a7967d114f4ab80 (patch) | |
tree | 0a735be4b4b869d4aa7dc18b5bdd5574713c5ece /src | |
parent | f978146de9c798e7405a7a09c5b4421e9429bf91 (diff) |
Properly set axis range and resolution for Server 1.5+
Diffstat (limited to 'src')
-rw-r--r-- | src/vmmouse.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vmmouse.c b/src/vmmouse.c index bc0cb87..beeed87 100644 --- a/src/vmmouse.c +++ b/src/vmmouse.c @@ -807,10 +807,18 @@ VMMouseDeviceControl(DeviceIntPtr device, int mode) ); /* X valuator */ +#ifdef ABS_VALUATOR_AXES + xf86InitValuatorAxisStruct(device, 0, 0, 65535, 10000, 0, 10000); +#else xf86InitValuatorAxisStruct(device, 0, 0, -1, 1, 0, 1); +#endif xf86InitValuatorDefaults(device, 0); /* Y valuator */ +#ifdef ABS_VALUATOR_AXES + xf86InitValuatorAxisStruct(device, 1, 0, 65535, 10000, 0, 10000); +#else xf86InitValuatorAxisStruct(device, 1, 0, -1, 1, 0, 1); +#endif xf86InitValuatorDefaults(device, 1); #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0 xf86MotionHistoryAllocate(pInfo); |