MuGameFramework  1.0
MuGameFramework is a 2D game framework built upon C# and SFML
 All Classes Namespaces Files Functions Variables Enumerations Properties
MuGameFramework.InputDevice.MouseState Struct Reference

Object holding a certain state of the Mouse More...

Public Member Functions

Vector2 GetMousePosition ()
 Get the current position of the mouse
bool IsMouseIntersect (Rectangle checkRect)
 Check if the mouse is intersecting a rectangle at a certain location
bool IsMouseButtonDown (MouseButtons button)
 Check if the left mouse button is down
bool IsMouseButtonUp (MouseButtons button)
 Check if the left mouse button is up

Detailed Description

Object holding a certain state of the Mouse

Member Function Documentation

Vector2 MuGameFramework.InputDevice.MouseState.GetMousePosition ( )

Get the current position of the mouse

Returns
Current position of the mouse
bool MuGameFramework.InputDevice.MouseState.IsMouseButtonDown ( MouseButtons  button)

Check if the left mouse button is down

Returns
Return if the left mouse button is down
bool MuGameFramework.InputDevice.MouseState.IsMouseButtonUp ( MouseButtons  button)

Check if the left mouse button is up

Returns
Return if the left mouse button is up
bool MuGameFramework.InputDevice.MouseState.IsMouseIntersect ( Rectangle  checkRect)

Check if the mouse is intersecting a rectangle at a certain location

Parameters
checkRectRectangle we are checking intersection with
Returns
Result from intersection check

The documentation for this struct was generated from the following file: