mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
33 lines
682 B
C++
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;
|
|
};
|
|
|