MCPcopy Create free account
hub / github.com/Illation/ETEngine / OnMouseMoved

Method OnMouseMoved

Engine/source/EtCore/Util/InputManager.cpp:114–119  ·  view source on GitHub ↗

--------------------------------- InputManager::OnMouseMoved updates the cursor position and velocity

Source from the content-addressed store, hash-verified

112// updates the cursor position and velocity
113//
114void InputManager::OnMouseMoved(ivec2 const& mousePos)
115{
116 vec2 newMouse = math::vecCast<float>(mousePos);
117 m_MouseMove = newMouse - m_MousePos;
118 m_MousePos = newMouse;
119}
120
121//---------------------------------
122// InputManager::SetMouseWheelDelta

Callers 2

InitMethod · 0.80
InitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected