Files
mcpe/source/client/player/input/IMoveInput.hpp

43 lines
827 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 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 onRender(float f);
virtual void setKey(int key, bool state);
virtual void setScreenSize(int width, int height);
virtual void onTick(Player*);
public:
float m_horzInput;
float m_vertInput;
bool field_C;
bool m_bJumpButton;
bool m_bSneakButton;
};