Aracılığıyla paylaş


MouseCapabilities.MousePresent Property

Definition

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

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

Property Value

Int32

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;
}

Applies to

See also