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

33 lines
682 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 "IMoveInput.hpp"
#include "server/Options.hpp"
class KeyboardInput : public IMoveInput
{
public:
public:
KeyboardInput(Options*);
void releaseAllKeys() override;
void setKey(int index, bool b) override;
void tick(Player*) override;
public:
bool m_keys[10];
Options* m_pOptions;
bool m_bJumped;
int m_jumpTick;
};