Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The following tables list the members exposed by the MouseState type.
Public Properties
Name | Description | |
---|---|---|
![]() |
LeftButton | Returns the state of the left mouse button. |
![]() |
MiddleButton | Returns the state of the middle mouse button. |
![]() |
RightButton | Returns the state of the right mouse button. |
![]() |
ScrollWheelValue | Gets the cumulative mouse scroll wheel value since the game was started. |
![]() |
X | Specifies the horizontal position of the mouse cursor. |
![]() |
XButton1 | Returns the state of XBUTTON1. |
![]() |
XButton2 | Returns the state of XBUTTON2. |
![]() |
Y | Specifies the vertical position of the mouse cursor. |
Public Methods
Name | Description | |
---|---|---|
![]() |
Equals | Overloaded. Returns a value that indicates whether the current instance is equal to a specified object. |
![]() |
GetHashCode | Gets the hash code for this instance. |
![]() |
GetType | (Inherited from Object.) |
![]() ![]() |
op_Equality | Determines whether two MouseState instances are equal. |
![]() ![]() |
op_Inequality | Determines whether two MouseState instances are not equal. |
![]() |
ReferenceEquals | (Inherited from Object.) |
![]() |
ToString | Retrieves a string representation of this object. |
Protected Methods
Name | Description | |
---|---|---|
![]() |
Finalize | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
See Also
Tasks
How to: Get the Current Mouse Position (Windows)
Concepts
Reference
MouseState Structure
Microsoft.Xna.Framework.Input Namespace