mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
* Initial commit.
:)
This commit is contained in:
21
source/UserInput/ITurnInput.hpp
Normal file
21
source/UserInput/ITurnInput.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user