We got GameObjects / Components and shit

This commit is contained in:
2026-01-10 06:09:50 +01:00
parent 10b00b0525
commit 0bfc5e0705
35 changed files with 1546 additions and 331 deletions
+5 -1
View File
@@ -97,8 +97,11 @@ void InputManager::RemoveController(SDL_JoystickID instanceId) {
);
}
void InputManager::ProcessEvent(const SDL_Event& e) {
bool InputManager::ProcessEvent(const SDL_Event& e) {
switch (e.type) {
case SDL_QUIT: {
return true;
}
case SDL_KEYDOWN: {
if (e.key.repeat) break;
SDL_Scancode sc = e.key.keysym.scancode;
@@ -196,6 +199,7 @@ void InputManager::ProcessEvent(const SDL_Event& e) {
default: break;
}
return false;
}
bool InputManager::IsKeyDown(SDL_Scancode sc) const { return m_keysDown.count(sc) != 0; }