mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:45:53 +00:00
[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:
parent
3a207cdf27
commit
2d5a230810
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue