chore: initial commit

This commit is contained in:
fallenoak 2023-01-02 13:17:18 -06:00
commit 70b00c5c38
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
965 changed files with 264882 additions and 0 deletions

39
src/event/CEvent.hpp Normal file
View file

@ -0,0 +1,39 @@
#ifndef EVENT_C_EVENT_HPP
#define EVENT_C_EVENT_HPP
#include "event/Types.hpp"
#include <cstdint>
#include <common/Ref.hpp>
class CEvent : public TRefCnt {
public:
// Member variables
uint32_t id;
void* param;
};
class CCharEvent : public CEvent, public EVENT_DATA_CHAR {
public:
// Member functions
CCharEvent& operator=(const EVENT_DATA_CHAR&);
};
class CKeyEvent : public CEvent, public EVENT_DATA_KEY {
public:
// Member functions
CKeyEvent& operator=(const EVENT_DATA_KEY&);
};
class CMouseEvent : public CEvent, public EVENT_DATA_MOUSE {
public:
// Member functions
CMouseEvent& operator=(const EVENT_DATA_MOUSE&);
};
class CSizeEvent : public CEvent, public EVENT_DATA_SIZE {
public:
// Member functions
CSizeEvent& operator=(const EVENT_DATA_SIZE&);
};
#endif