MouseCapabilities.MousePresent Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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;
}