X Property (Windows)

MouseState.X Property

Bb200107.note(en-US,XNAGameStudio.10).gifNote
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

Show:
© 2016 Microsoft