Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 758 Bytes

mousecapabilities_mousepresent.md

File metadata and controls

33 lines (23 loc) · 758 Bytes
-api-id -api-type
P:Windows.Devices.Input.MouseCapabilities.MousePresent
winrt property

Windows.Devices.Input.MouseCapabilities.MousePresent

-description

Gets a value that indicates whether a mouse device is detected.

-property-value

The number of mouse devices detected. Typically 0 or 1.

-remarks

-examples

The following code shows how to use this method.

    function getMouseCapabilities() {
        var mouseCapabilities = new Windows.Devices.Input.MouseCapabilities();
        id("mousePresent").innerHTML = mouseCapabilities.MousePresent;
    }

-see-also

Quickstart: Identifying input devices