Adding Event example
This commit is contained in:
parent
ec8eb971a5
commit
49f42e98f4
5 changed files with 70 additions and 1 deletions
22
examples/events/EventsExample.h
Normal file
22
examples/events/EventsExample.h
Normal 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue