/******************************************************************** Minecraft: Pocket Edition - Decompilation Project Copyright (C) 2023 iProgramInCpp The following code is licensed under the BSD 1 clause license. SPDX-License-Identifier: BSD-1-Clause ********************************************************************/ #pragma once class ITurnInput { public: struct Delta { float x, y; Delta() { x = 0.0f; y = 0.0f; } Delta(float x, float y) : x(x), y(y) {} }; protected: ITurnInput() { m_prevTime = -1.0f; } public: float getDeltaTime(); virtual ~ITurnInput(); virtual Delta getTurnDelta() = 0; private: float m_prevTime; };