18 lines
260 B
C++
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;
|
|
};
|
|
|