Table of Contents

Class MouseExtensions

Namespace
MLEM.Input
Assembly
MLEM.dll

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

MouseButton[]

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 MouseState

The mouse's current state

button MouseButton

The button whose state to query

Returns

ButtonState

The state of the button

Exceptions

ArgumentException

If a mouse button out of range is passed