Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MouseCapabilities class

Applies to Windows and Windows Phone

Supports the ability to determine the capabilities of any connected mouse devices.

Syntax

Public NotInheritable Class MouseCapabilities

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The MouseCapabilities class has these types of members:

Constructors

The MouseCapabilities class has these constructors.

ConstructorDescription
MouseCapabilities Initializes a new instance of the MouseCapabilities class.

 

Properties

The MouseCapabilities class has these properties.

PropertyAccess typeDescription

HorizontalWheelPresent

Read-onlyGets a value indicating whether any of the mice connected to the computer have a scroll wheel that tilts left and right (usually for horizontal scrolling).

MousePresent

Read-onlyGets a value that indicates whether a mouse device is detected.

NumberOfButtons

Read-onlyGets 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.

SwapButtons

Read-onlyGets a value indicating whether any of the mice connected to the computer has swapped left and right buttons.

VerticalWheelPresent

Read-onlyGets a value indicating whether any of the mice connected to the computer have a scroll wheel that rolls up and down (usually for vertical scrolling).

 

Remarks

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.

Requirements

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.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Input
Windows::Devices::Input [C++]

Metadata

Windows.winmd

See also

Windows.Devices.Input
Quickstarts
Quickstart: Identifying input devices

 

 

Show:
© 2014 Microsoft