Mouse Members

The following tables list the members exposed by the Mouse type.

Public Properties

Name Description
Public Property Static WindowHandle Gets or sets the window used for mouse processing. Mouse coordinates returned by GetState are relative to the upper-left corner of this window.

Public Methods

Name Description
Public Method Static GetState Gets the current state of the mouse, including mouse position and buttons pressed.
Public Method Static SetPosition Sets the position of the mouse cursor relative to the upper-left corner of the window.

See Also

Tasks

Getting the Mouse Position (Windows, Windows Phone)

Concepts

Overview of User Input and Input Devices

Reference

Mouse Class
Microsoft.Xna.Framework.Input Namespace