InputManager class final

Public static functions

static auto Instance() -> InputManager&

Constructors, destructors, conversion operators

InputManager(InputManager const&) deleted

Public functions

auto operator=(InputManager const&) -> InputManager& deleted
void update(SDL_Event& event)
void refresh()
void reset()
void clean()
auto getMousePosition() const -> b2Vec2
auto isKeyDown(const KeyboardKey key) const -> bool
auto isKeyUp(const KeyboardKey key) const -> bool
auto isKeyPressed(const KeyboardKey key) const -> bool
auto isMouseDown(const MouseButton button) const -> bool
auto isMouseUp(const MouseButton button) const -> bool
auto isMousePressed(const MouseButton button) const -> bool
auto isMouseInside(const Rectangle& rectangle) const -> bool