Files
mcpe/source/client/player/input/IMoveInput.hpp
Brent afe875e4fa iOS Support (#113)
undefined
2024-01-22 17:22:41 +02:00

45 lines
869 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
#include "compat/LegacyCPPCompatibility.hpp"
class Player;
enum
{
INPUT_FORWARD,
INPUT_BACKWARD,
INPUT_LEFT,
INPUT_RIGHT,
INPUT_JUMP,
INPUT_SNEAK,
};
class IMoveInput
{
public:
IMoveInput();
virtual ~IMoveInput();
virtual void releaseAllKeys();
virtual void render(float f);
virtual void setKey(int key, bool state);
virtual void setScreenSize(int width, int height);
virtual void tick(Player*);
public:
float m_horzInput;
float m_vertInput;
bool field_C;
bool m_bJumpButton;
bool m_bSneakButton;
};