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.

MouseDevice class

Applies to Windows and Windows Phone

Supports the ability to identify and track connected mouse devices.

Syntax


var mouseDevice = Windows.Devices.Input.MouseDevice;

Attributes

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

Members

The MouseDevice class has these types of members:

Events

The MouseDevice class has these events.

EventDescription
MouseMoved Occurs when the mouse pointer is moved.

 

Methods

The MouseDevice class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
GetForCurrentView Retrieves the mouse device that is associated with the current view.

 

Remarks

The Device Capabilities Sample demonstrates how to detect the presence of input devices and retrieve the capabilities and attributes of each device.

Note  : This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX) and Using Windows Runtime objects in a multithreaded environment (.NET).

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

 

 

Show:
© 2014 Microsoft