hibiscus/core/input/manager.hpp
2023-07-30 18:06:47 +02:00

22 lines
380 B
C++

#pragma once
#include <map>
#include "presstypes.hpp"
namespace hibis {
class InputManager final {
public:
InputManager();
~InputManager();
bool isKeyPressed(int scancode);
bool isKeyJustPressed(int scancode);
bool isKeyJustReleased(int scancode);
void setKeyPressState(int scancode, PressTypes type);
private:
std::map<int, PressTypes> mKeyScancodes;
};
}