MouseState.X Property
Note
This property is available only when developing for Windows.
Specifies the horizontal position of the mouse cursor.
Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public int X { get; }
Property Value
Horizontal position of the mouse cursor in relation to the upper-left corner of the game window.
See Also
Tasks
How to: Get the Current Mouse Position (Windows)
Concepts
Reference
MouseState Structure
MouseState Members
Microsoft.Xna.Framework.Input Namespace
Platforms
Windows XP SP2, Windows Vista