mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
15 lines
244 B
C++
15 lines
244 B
C++
#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;
|
|
}
|