MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetMouse2DPosition

Function GetMouse2DPosition

TombEngine/Specific/Input/Input.cpp:781–788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779 }
780
781 Vector2 GetMouse2DPosition()
782 {
783 const auto& state = OisMouse->getMouseState();
784
785 auto areaRes = Vector2(state.width, state.height);
786 auto areaPos = Vector2(state.X.abs, state.Y.abs);
787 return (DISPLAY_SPACE_RES * (areaPos / areaRes));
788 }
789
790 void ClearAction(ActionID actionID)
791 {

Callers 2

DrawDebugInfoMethod · 0.85
GetMouseDisplayPositionFunction · 0.85

Calls 1

Vector2Function · 0.50

Tested by

no test coverage detected