Repository navigation
MouseStateManager.cs
This class derives from GameComponent and manages all mouse input.
The MouseState this frame. Update in call to Update(GameTime gameTime)
The MouseState last frame. Update in call to PreUpdate(GameTime gameTime)
The integer based position of the mouse on the screen.
The float based position of the mouse on the screen.
Position of the mouse last frame.
Direction the mouse is currently travelling in.
Velocity the mouse is currently travelling in.
The position of the mouse as a Rectangle, used for Rectangle Intersection.
True if the Left button is clicked.
True if the Right button is clicked.
True if the Middle button is clicked.
True if the XButton1 is clicked.
True if the XButton2 is clicked.
True if the Left button was first down this frame.
True if the Rightbutton was first down this frame.
True if the Middle button was first down this frame.
Current ButtonState of the Left button.
Current ButtonState of the Right button.
Current ButtonState of the Middle button.
True if the Left button is down.
True if the Right button is down.
True if the Middle button is down.
True if the XButton1 is down.
True if the XButton2 is down.
Current value of the scroll wheel.
Scroll wheel delta from last to this frame.
Mouse position delta from last to this frame.
This is the constructor, it adds it's self to the Game.Components list as well as adds it's self to Game.Services
Sets the current state.
Sets the last state to current state. This should be called at the top of the Game.Update method.