space-game001/InputManager.h
Vladislav Khorev 68b31cb197 merge
2025-03-01 20:14:56 +03:00

18 lines
416 B
C++

#pragma once
#include "OpenGlExtensions.h"
namespace ZL {
class InputManager {
public:
static InputManager& getInstance();
void processInput();
bool isKeyPressed(SDL_Scancode key) const;
bool shouldQuit() const { return mShouldQuit; }
private:
InputManager() = default;
bool mKeys[SDL_NUM_SCANCODES] = {false};
bool mShouldQuit = false;
};
}