Files
mcpe/source/UserInput/ITurnInput.hpp
iProgramInCpp 9642818a88 * Initial commit.
:)
2023-07-30 22:22:02 +03:00

22 lines
277 B
C++

#pragma once
class ITurnInput
{
public:
struct Delta
{
float x = 0.0f, y = 0.0f;
Delta() {}
Delta(float x, float y) : x(x), y(y) {}
};
public:
float getDeltaTime();
virtual ~ITurnInput();
virtual Delta getTurnDelta() = 0;
private:
float m_prevTime = -1.0f;
};