MouseCapabilities.NumberOfButtons 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 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:
property unsigned int NumberOfButtons { unsigned int get(); };
uint32_t NumberOfButtons();
public uint NumberOfButtons { get; }
var uInt32 = mouseCapabilities.numberOfButtons;
Public ReadOnly Property NumberOfButtons As UInteger
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.
Examples
The following code shows how to use this method.
function getMouseCapabilities() {
var mouseCapabilities = new Windows.Devices.Input.MouseCapabilities();
id("numberOfButtons").innerHTML = mouseCapabilities.NumberOfButtons;
}
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for