-api-id | -api-type |
---|---|
P:Windows.Devices.Input.MouseCapabilities.NumberOfButtons |
winrt property |
Gets a value representing the number of buttons on the mouse. If multiple mice are present, it returns the number of buttons of the mouse which has maximum number of buttons.
A value representing the number of buttons on the mouse. If multiple mice are present, it returns the number of buttons of the mouse which has maximum number of buttons.
The following code shows how to use this method.
function getMouseCapabilities() {
var mouseCapabilities = new Windows.Devices.Input.MouseCapabilities();
id("numberOfButtons").innerHTML = mouseCapabilities.NumberOfButtons;
}