mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
24 lines
606 B
C++
24 lines
606 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
|
|
********************************************************************/
|
|
|
|
#include "Keyboard.hpp"
|
|
|
|
std::vector<Keyboard::Input> Keyboard::_inputs;
|
|
int Keyboard::_index = -1;
|
|
int Keyboard::_states[256];
|
|
|
|
void Keyboard::feed(int down, int key)
|
|
{
|
|
Input i;
|
|
i.field_0 = down;
|
|
i.field_4 = uint8_t(key);
|
|
_inputs.push_back(i);
|
|
|
|
_states[key] = down;
|
|
}
|