Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 999 Bytes

mousecapabilities_numberofbuttons.md

File metadata and controls

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

Windows.Devices.Input.MouseCapabilities.NumberOfButtons

-description

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.

-property-value

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.

-remarks

-examples

The following code shows how to use this method.

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

-see-also

Quickstart: Identifying input devices