middle mouse scroll update

This commit is contained in:
turanszkij
2019-04-02 19:05:46 +01:00
parent 45e344cbfa
commit 4ea4bcbcb3
4 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -124,8 +124,6 @@ void MainComponent::Run()
wiProfiler::BeginFrame();
wiProfiler::BeginRange("CPU Frame", wiProfiler::DOMAIN_CPU);
wiInputManager::Update();
deltaTime = float(max(0, timer.elapsed() / 1000.0));
timer.record();
@@ -175,6 +173,8 @@ void MainComponent::Run()
wiLua::GetGlobal()->SetDeltaTime(0);
}
wiInputManager::Update();
wiProfiler::BeginRange("Render", wiProfiler::DOMAIN_CPU);
Render();
wiProfiler::EndRange(); // Render