Mouse.GetState Method
Note
This method is available only when developing for Windows.
Gets the current state of the mouse, including mouse position and buttons pressed.
Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public static MouseState GetState ()
Return Value
Current state of the mouse.
See Also
Tasks
How to: Get the Current Mouse Position (Windows)
Concepts
Reference
Mouse Class
Mouse Members
Microsoft.Xna.Framework.Input Namespace
Platforms
Windows XP SP2, Windows Vista