MouseState.Y Property

Note

This property is available only when developing for Windows.

Specifies the vertical position of the mouse cursor.

Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public int Y { get; }

Property Value

Vertical 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

Input Overview

Reference

MouseState Structure
MouseState Members
Microsoft.Xna.Framework.Input Namespace

Platforms

Windows XP SP2, Windows Vista