mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
43 lines
827 B
C++
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;
|
|
};
|
|
|