Supports the ability to identify and track connected mouse devices.
var mouseDevice = Windows.Devices.Input.MouseDevice;
public sealed class MouseDevice
Public NotInheritable Class MouseDevice
public ref class MouseDevice sealed
- [ MarshalingBehavior(Standard)]
- [ Version(0x06020000)]
The MouseDevice class has these types of members:
The MouseDevice class has these events.
|MouseMoved||Occurs when the mouse pointer is moved.|
The MouseDevice class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
|GetForCurrentView||Retrieves the mouse device that is associated with the current view.|
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).
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]|