Mouse.GetState Method
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
Getting the Mouse Position (Windows, Windows Phone)
Concepts
Overview of User Input and Input Devices
Reference
Mouse Class
Mouse Members
Microsoft.Xna.Framework.Input Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone