Add Event system

- Add abstract Event class
- Add EventDispatcher
- Add Mouse, Key and Window Events
This commit is contained in:
Thraix
2023-04-26 21:55:32 +02:00
parent 1731bb1dd5
commit ca7286807a
30 changed files with 670 additions and 59 deletions
@@ -0,0 +1,18 @@
#pragma once
#include "copium/event/Event.h"
namespace Copium
{
class WindowResizeEvent : public Event
{
private:
int width;
int height;
public:
WindowResizeEvent(int width, int height);
int GetWidth() const;
int GetHeight() const;
};
}