1
0
Fork 0

Adding Event example

This commit is contained in:
Henrik Hautakoski 2020-10-14 13:20:55 +02:00
parent ec8eb971a5
commit 49f42e98f4
5 changed files with 70 additions and 1 deletions

View file

@ -0,0 +1,22 @@
#ifndef EVENTS_EXAMPLE_H
#define EVENTS_EXAMPLE_H
#include <Spectre/Game.h>
#include <Spectre/System/EventListener.h>
class EventsExample : public sp::Game, sp::EventListener
{
public :
void onEvent(const sp::Event& event);
protected :
void init();
void update(double dt);
void render();
};
#endif /* EVENTS_EXAMPLE_H */