MouseDevice class

This topic has not yet been rated - Rate this topic

Supports the ability to identify and track connected mouse devices.

Syntax


var mouseDevice = Windows.Devices.Input.MouseDevice;

Attributes

MarshalingBehaviorAttribute(Standard)
StaticAttribute(Windows.Devices.Input.IMouseDeviceStatics, NTDDI_WIN8)
VersionAttribute(NTDDI_WIN8)

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).

Windows Phone 8

This API is not implemented and will throw an exception if called.

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

Namespace

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

Metadata

Windows.winmd

 

 

Build date: 2/25/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.