Untitled Game engine no.5
1.0
|
4 #include <SDL2/SDL_keycode.h>
5 #include <glm/vec2.hpp>
6 #include <unordered_map>
11 typedef SDL_Keycode KeyCode;
12 typedef uint8_t MouseCode;
39 static Input s_Instance;
45 keyStates[key] = state;
50 mouseStates[button] = state;
92 static std::unordered_map<KeyCode, bool> keyStates;
93 static std::unordered_map<MouseCode, bool> mouseStates;
94 static Input* s_Instance;
95 static glm::vec2 mousePos, mousePosOld;
A container for entities currently in the Scene.
Definition: Scene.hpp:9
Definition: Animation.hpp:14