mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
23 lines
298 B
C++
23 lines
298 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
class Keyboard
|
|
{
|
|
public:
|
|
//@TODO: Rename this to KeyboardAction
|
|
struct Input
|
|
{
|
|
int field_0;
|
|
uint8_t field_4;
|
|
};
|
|
|
|
static std::vector<Input> _inputs;
|
|
static int _states[256];
|
|
static int _index;
|
|
|
|
// likely inlined
|
|
static void feed(int down, int key);
|
|
};
|
|
|