[MOUHID] Correctly detect tablet devices

Some mice give a logical min/logical max which is the maximum move
that they can provide. Those were wrongly detected as absolute mice,
and mouse pointer was mostly stuck at the upper left corner of the
screen.
This commit is contained in:
Hervé Poussineau 2019-05-10 08:39:10 +02:00
parent 3a207cdf27
commit 2d5a230810

View file

@ -947,8 +947,8 @@ MouHid_StartDevice(
}
/* check if mice is absolute */
if (DeviceExtension->ValueCapsY.LogicalMax > DeviceExtension->ValueCapsY.LogicalMin ||
DeviceExtension->ValueCapsX.LogicalMax > DeviceExtension->ValueCapsX.LogicalMin)
if (DeviceExtension->ValueCapsY.IsAbsolute &&
DeviceExtension->ValueCapsX.IsAbsolute)
{
/* mice is absolute */
DeviceExtension->MouseAbsolute = TRUE;