MouseState Structure

Note

This structure is available only when developing for Windows.

Represents the state of a mouse input device, including mouse cursor position and buttons pressed.

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

Syntax

[SerializableAttribute]
public struct MouseState

See Also

Tasks

How to: Get the Current Mouse Position (Windows)

Concepts

Input Overview

Reference

MouseState Members
Microsoft.Xna.Framework.Input Namespace

Platforms

Windows XP SP2, Windows Vista