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