X Property (Windows)

MouseState.X Property

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)

public int X { get; }

Property Value

Horizontal position of the mouse cursor in relation to the upper-left corner of the game window.

Windows XP SP2, Windows Vista

© 2016 Microsoft