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

Method SetMousePosition

Source/Engine/Platform/SDL/SDLWindow.cpp:936–945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

934}
935
936void SDLWindow::SetMousePosition(const Float2& position) const
937{
938 if (!_settings.AllowInput || !_focused)
939 return;
940
941 SDL_WarpMouseInWindow(_window, position.X, position.Y);
942
943 Float2 screenPosition = ClientToScreen(position);
944 Input::Mouse->OnMouseMoved(screenPosition);
945}
946
947void SDLWindow::SetCursor(CursorType type)
948{

Callers

nothing calls this directly

Calls 2

ClientToScreenFunction · 0.85
OnMouseMovedMethod · 0.80

Tested by

no test coverage detected