Closed Bug 1495938 Opened 6 years ago Closed 6 years ago

Find out a reliable way to tell there is no mouse on Microsoft Surface

Categories

(Core :: Widget: Win32, defect, P5)

Other
Windows
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox64 --- affected

People

(Reporter: hiro, Unassigned)

References

Details

+++ This bug was initially created as a clone of Bug #1493128 +++ In bug 143128 we discovered that all of GetSystemMetrics(SM_MOUSEPRESENT), SetupDiEnumDeviceInterfaces[1] and GetPointerDevices[2] returns there is a mouse even if no mouse device is connected to the Surface. As far as I can tell there is no way to tell that. This bug is for a future work once Microsoft provides the way (or we find the way). [1] https://docs.microsoft.com/en-us/windows/desktop/api/setupapi/nf-setupapi-setupdienumdeviceinterfaces [2] https://docs.microsoft.com/en-us/uwp/api/windows.devices.input.pointerdevice.getpointerdevices
Oops, for the record I did also try MouseCapabilities [1] in bug 1493128, it didn't work either. [1] https://docs.microsoft.com/en-us/uwp/api/windows.devices.input.mousecapabilities
It appears that the latest fix for bug 1493128 also fixed this issue. When the mouse remains the last pointing device on the system and then it gets removed, the test page displays "none" to all as expected. Can it be marked as RESOLVED? Thank you!
Flags: needinfo?(hikezoe)
Sure! We can close this bug. Thanks Bodea!
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(hikezoe)
Resolution: --- → WORKSFORME

Hi Hiroyuki! This change broke the CSS Media "pointer" and "any-pointer" Query on Windows 10 laptops with a trackpad and without a mouse (they incorrectly return pointer: coarse instead of the pointer: fine that the spec requires for trackpads/touchpads as opposed to tablet touchscreens).

Please see the details at: https://bugzilla.mozilla.org/show_bug.cgi?id=1638556

Thanks!

You need to log in before you can comment on or make changes to this bug.