Supports the ability to determine the capabilities of any connected mouse devices.
var mouseCapabilities = new Windows.Devices.Input.MouseCapabilities();
public sealed class MouseCapabilities
Public NotInheritable Class MouseCapabilities
public ref class MouseCapabilities sealed
- [ MarshalingBehavior(Agile)]
- [ Version(0x06020000)]
The MouseCapabilities class has these types of members:
The MouseCapabilities class has these constructors.
|MouseCapabilities||Initializes a new instance of the MouseCapabilities class.|
The MouseCapabilities class inherits methods from the Object class (C#/VB/C++).
The MouseCapabilities class has these properties.
|Read-only||Gets a value indicating whether any of the mice connected to the computer has horizontal wheel.|
|Read-only||Gets a value that indicates whether a mouse device is detected.|
|Read-only||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.|
|Read-only||Gets a value indicating whether any of the mice connected to the computer has swapped left and right buttons.|
|Read-only||Gets a value indicating whether wheel is present on any of the mice connected to the computer.|
The values returned by the properties discussed here are based on the total number of mice connected: Boolean properties return true if one mouse supports a specific capability and numeric properties return the maximum value exposed by all mice.
The Device Capabilities Sample demonstrates how to detect the presence of input devices and retrieve the capabilities and attributes of each device.
This API is not implemented and will throw an exception if called. See Windows Phone Runtime API.
Minimum supported client
|Windows 8 [Windows Store apps only]|
Minimum supported server
|Windows Server 2012 [Windows Store apps only]|
Minimum supported phone
|Windows Phone 8 [not implemented, see Remarks]|
Build date: 11/16/2013