MouseCapabilities.MousePresent MouseCapabilities.MousePresent MouseCapabilities.MousePresent MouseCapabilities.MousePresent MouseCapabilities.MousePresent Property

Definition

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

public : int MousePresent { get; }
int32_t MousePresent();
public int MousePresent { get; }
Public ReadOnly Property MousePresent As int
var int = mouseCapabilities.mousePresent;

Property Value

int int int

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

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