hibiscus/core/input/manager.hpp

22 lines
380 B
C++
Raw Normal View History

2023-07-30 16:06:47 +00:00
#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;
};
}