update
This commit is contained in:
@@ -101,7 +101,7 @@ void MainComponent::run()
|
||||
Update();
|
||||
}
|
||||
|
||||
getActiveComponent()->FixedUpdate(elapsedTime);
|
||||
getActiveComponent()->FixedUpdate((float)elapsedTime);
|
||||
|
||||
Render();
|
||||
|
||||
@@ -112,6 +112,8 @@ void MainComponent::run()
|
||||
wiLua::GetGlobal()->RunFile("startup.lua");
|
||||
startupScriptProcessed = true;
|
||||
}
|
||||
|
||||
wiInputManager::ManageTouches();
|
||||
}
|
||||
|
||||
void MainComponent::Update()
|
||||
@@ -211,6 +213,8 @@ bool MainComponent::setWindow(Windows::UI::Core::CoreWindow^ window)
|
||||
screenH = (int)window->Bounds.Height;
|
||||
wiRenderer::InitDevice(window);
|
||||
|
||||
this->window = window;
|
||||
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user