Files
SDL-Playground/include/components/InputComponent.h
2025-08-13 22:21:37 -06:00

18 lines
260 B
C++

#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;
};