Class MouseExtensions
A set of extension methods for dealing with MouseButton and Microsoft.Xna.Framework.Input.Mouse
public static class MouseExtensions
- Inheritance
-
MouseExtensions
- Inherited Members
Fields
MouseButtons
All enum values of MouseButton
public static readonly MouseButton[] MouseButtons
Field Value
Methods
GetState(MouseState, MouseButton)
Returns the Microsoft.Xna.Framework.Input.ButtonState of the given mouse button.
public static ButtonState GetState(this MouseState state, MouseButton button)
Parameters
state
MouseStateThe mouse's current state
button
MouseButtonThe button whose state to query
Returns
- ButtonState
The state of the button
Exceptions
- ArgumentException
If a mouse button out of range is passed