mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
Add EventBase and EventHandler
This commit is contained in:
parent
f3b1b2208c
commit
f1d9f79ba5
|
@ -1,2 +1,14 @@
|
|||
#pragma once
|
||||
#include "MiniEngine.h"
|
||||
|
||||
class EventBase
|
||||
{
|
||||
protected:
|
||||
SDL_Event e;
|
||||
};
|
||||
|
||||
class EventHandler
|
||||
{
|
||||
public:
|
||||
virtual bool event(const EventBase&)=0;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user