* Initial commit.

:)
This commit is contained in:
iProgramInCpp
2023-07-30 22:22:02 +03:00
commit 9642818a88
613 changed files with 151754 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#include "ITurnInput.hpp"
#include "Utils.hpp"
float ITurnInput::getDeltaTime()
{
if (m_prevTime == -1.0f)
m_prevTime = getTimeS();
float newTime = getTimeS();
float delta = newTime - m_prevTime;
m_prevTime = newTime;
return delta;
}