MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetOldMousePosition

Method GetOldMousePosition

Source/Engine/Platform/SDL/SDLInput.cpp:377–381  ·  view source on GitHub ↗

Returns the previous known position of the mouse before entering relative mode.

Source from the content-addressed store, hash-verified

375 /// Returns the previous known position of the mouse before entering relative mode.
376 /// </summary>
377 Float2 GetOldMousePosition() const
378 {
379 ASSERT(_relativeModeWindow != nullptr);
380 return _relativeModeWindow->ClientToScreen(_oldPosition);
381 }
382
383 // [Mouse]
384 void SetMousePosition(const Float2& screenPosition) final override

Callers 1

HandleEventMethod · 0.80

Calls 1

ClientToScreenMethod · 0.45

Tested by

no test coverage detected