2023-07-30 22:41:09 +03:00
|
|
|
/********************************************************************
|
|
|
|
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
|
|
|
|
********************************************************************/
|
|
|
|
|
2023-07-30 22:22:02 +03:00
|
|
|
#pragma once
|
|
|
|
|
2023-11-02 00:49:11 +02:00
|
|
|
#include "IMoveInput.hpp"
|
|
|
|
|
2023-10-22 02:08:59 -05:00
|
|
|
#include "client/options/Options.hpp"
|
2023-07-30 22:22:02 +03:00
|
|
|
|
2023-11-02 00:49:11 +02:00
|
|
|
class KeyboardInput : public IMoveInput
|
2023-07-30 22:22:02 +03:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
public:
|
|
|
|
KeyboardInput(Options*);
|
|
|
|
|
2023-11-02 00:49:11 +02:00
|
|
|
void releaseAllKeys() override;
|
|
|
|
void setKey(int index, bool b) override;
|
|
|
|
void tick(Player*) override;
|
2023-07-30 22:22:02 +03:00
|
|
|
|
|
|
|
public:
|
|
|
|
bool m_keys[10];
|
2023-08-07 07:48:52 -05:00
|
|
|
Options* m_pOptions;
|
2023-07-30 22:22:02 +03:00
|
|
|
};
|
|
|
|
|