inputmanager update

This commit is contained in:
turanszkij
2018-10-15 18:12:45 +01:00
parent 37299fb445
commit 5268ad26c6
3 changed files with 3 additions and 11 deletions
+2
View File
@@ -123,6 +123,8 @@ void MainComponent::Run()
wiProfiler::GetInstance().BeginFrame();
wiProfiler::GetInstance().BeginRange("CPU Frame", wiProfiler::DOMAIN_CPU);
wiInputManager::GetInstance()->Update();
static wiTimer timer = wiTimer();
static double accumulator = 0.0;
const double elapsedTime = max(0, timer.elapsed() / 1000.0);
-10
View File
@@ -22,16 +22,6 @@ wiInputManager::wiInputManager()
xinput = nullptr;
dinput = nullptr;
rawinput = nullptr;
thread([&] {
while (true)
{
Update();
wiHelper::Sleep(16.f);
}
}).detach();
}
wiInputManager::~wiInputManager()
{
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates
const int minor = 21;
// minor bug fixes, alterations, refactors, updates
const int revision = 7;
const int revision = 8;
long GetVersion()