https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2d5a230810640deac812c3...
commit 2d5a230810640deac812c37336a583c8ac266281 Author: Hervé Poussineau hpoussin@reactos.org AuthorDate: Fri May 10 08:39:10 2019 +0200 Commit: Hervé Poussineau hpoussin@reactos.org CommitDate: Fri May 10 11:35:01 2019 +0200
[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. --- drivers/hid/mouhid/mouhid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/hid/mouhid/mouhid.c b/drivers/hid/mouhid/mouhid.c index 045090929d..073b22c303 100644 --- a/drivers/hid/mouhid/mouhid.c +++ b/drivers/hid/mouhid/mouhid.c @@ -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;