|
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]{}; |