MegaSteve/Input.ixx

20 lines
315 B
Plaintext
Raw Normal View History

module;
export module Input;
export class KeyBoard
{
static bool KeyStatus[256];
public:
static void Update(char keycode, bool status)
{
KeyStatus[keycode] = status;
}
static bool GetKey(char keycode)
{
return KeyStatus[keycode];
}
};
bool KeyBoard::KeyStatus[256]{};