inputmanager update
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -22,16 +22,6 @@ wiInputManager::wiInputManager()
|
||||
xinput = nullptr;
|
||||
dinput = nullptr;
|
||||
rawinput = nullptr;
|
||||
|
||||
thread([&] {
|
||||
|
||||
while (true)
|
||||
{
|
||||
Update();
|
||||
wiHelper::Sleep(16.f);
|
||||
}
|
||||
|
||||
}).detach();
|
||||
}
|
||||
wiInputManager::~wiInputManager()
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user