Files
mcpe/source/client/player/input/ITurnInput.hpp
Brent 5ac3aa6d9e macOS Support & AppPlatform Cleanup (#57)
* macOS Support & Cleanup

* Fix malformed comments in build-wasm.bat

* Emscripten Fixes

* * Add shebang to the grabsounds.py script

Since it was changed from rw- to rwx, I'll add the shebang so that it actually runs properly.

* * Re-add the patch_data and readme files.

* * Remove sound data.

* Fix some more things.

* Think it's ready to pull now...

---------

Co-authored-by: BrentDaMage <BrentDaMage@users.noreply.github.com>
Co-authored-by: iProgramInCpp <iprogramincpp@gmail.com>
2023-08-17 11:20:59 +03:00

35 lines
667 B
C++

/********************************************************************
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;
};