initial commit

This commit is contained in:
Andrey Zimin
2024-05-15 09:09:36 +03:00
commit a0b5e810f7
130 changed files with 4925 additions and 0 deletions

32
src/event/event.hpp Executable file
View File

@@ -0,0 +1,32 @@
#pragma once
#include "utils/utils.hpp"
namespace VE
{
enum class event_type
{
KEY_PRESSED,
KEY_RELEASED,
KEY_REPEATE,
MOUSE_BUTTON_PRESSED,
MOUSE_BUTTON_RELEASED,
MOUSE_CURSOR_POSITION,
MOUSE_SCROLL,
WINDOW_RESIZE,
WINDOW_CLOSE,
WINDOW_FOCUS,
};
struct event
{
event(std::any t, std::any d) : m_type{ t }, m_data{ d } {}
~event() = default;
std::any m_type;
std::any m_data;
bool is_parallele{ false };
};
}