Bagikan melalui


Mouse Members

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

Public Properties

Name Description
Public Property Static WindowHandle Sets or gets the window handle that mouse data will be captured within.

Public Methods

Name Description
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method Static GetState Gets the current state of the mouse, including mouse position and buttons pressed.
Public Method GetType (Inherited from Object.)
Public Method ReferenceEquals (Inherited from Object.)
Public Method Static SetPosition Sets the position of the mouse cursor relative to the upper-left corner of the window.
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Tasks

How to: Get the Current Mouse Position (Windows)

Concepts

Input Overview

Reference

Mouse Class
Microsoft.Xna.Framework.Input Namespace