-
Notifications
You must be signed in to change notification settings - Fork 4
Mouse class reference
Int2 GetMousePosition()
- Get the mouse coordinates relative to the top left corner of the window
Int2 GetScrollDelta()
- Get the scroll wheel relative movement on the last frame
bool GetButton(MouseButton button)
- Gets whether the given mouse button is pressed
bool GetButtonDown(MouseButton button)
- Gets whether the given mouse button was just pressed this frame
bool GetButtonUp(MouseButton button
- Gets whether the given mouse button was just released this frame
MouseState CurrentState { get; }
- Gets a snapshot of the current mouse state
Event<MouseButtonPressedHandler> OnMouseButtonPressed
- Event triggered when a mouse button is pressed
Event<MouseButtonReleasedHandler> OnMouseButtonReleased
- Event triggered when a mouse button is released
Getting Started
Drawing Sprites
Loading & Applying Effects
Loading Textures
Creating vertex & index buffers and drawing geometry
Using render buffers
Playing sound effects & music
Routing sound through buses & applying filters
Game
GameWindow
GraphicsDevice
SpriteBatch
Audio
Keyboard
Mouse
GamepadDevice