mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
49 lines
933 B
C++
49 lines
933 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,
|
|
INPUT_CHAT,
|
|
INPUT_FLY_UP,
|
|
INPUT_FLY_DOWN,
|
|
};
|
|
|
|
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;
|
|
float m_flyInput;
|
|
bool field_C;
|
|
bool m_bJumpButton;
|
|
bool m_bSneakButton;
|
|
};
|
|
|