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

Method OnUpdate

Source/Engine/Platform/Mac/MacWindow.cpp:880–894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

878}
879
880void MacWindow::OnUpdate(float dt)
881{
882 if (IsMouseTracking())
883 {
884 // Keep sending mouse movement events no matter if window has focus
885 Float2 mousePos = Platform::GetMousePosition();
886 if (_mouseTrackPos != mousePos)
887 {
888 _mouseTrackPos = mousePos;
889 Input::Mouse->OnMouseMove(mousePos, this);
890 }
891 }
892
893 WindowBase::OnUpdate(dt);
894}
895
896void MacWindow::Show()
897{

Callers

nothing calls this directly

Calls 4

IsMouseTrackingFunction · 0.85
GetMousePositionFunction · 0.70
OnUpdateFunction · 0.50
OnMouseMoveMethod · 0.45

Tested by

no test coverage detected