more component stuff

This commit is contained in:
Josh Lyon
2025-08-13 22:21:37 -06:00
parent f6de0ed9f3
commit 7259d9307b
8 changed files with 151 additions and 43 deletions

View File

@@ -0,0 +1,17 @@
#pragma once
#include <SDL3/SDL_events.h>
#include "GameState.h"
struct InputComponent {
public:
virtual ~InputComponent() {};
virtual GameState update(SDL_Event const* event) = 0;
bool moveUp;
bool moveDown;
bool moveLeft;
bool moveRight;
};