MouseCapabilities.NumberOfButtons MouseCapabilities.NumberOfButtons MouseCapabilities.NumberOfButtons MouseCapabilities.NumberOfButtons MouseCapabilities.NumberOfButtons Property

Definition

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.

public : unsigned int NumberOfButtons { get; }
uint32_t NumberOfButtons();
public uint NumberOfButtons { get; }
Public ReadOnly Property NumberOfButtons As uint
var uint = mouseCapabilities.numberOfButtons;

Property Value

uint uint uint

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.

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