fix def emit
This commit is contained in:
@@ -140,7 +140,7 @@ namespace VE
|
||||
}
|
||||
}
|
||||
|
||||
EMIT(e);
|
||||
VE_EMIT(e);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -173,7 +173,7 @@ namespace VE
|
||||
}
|
||||
}
|
||||
|
||||
EMIT(e);
|
||||
VE_EMIT(e);
|
||||
});
|
||||
|
||||
glfwSetScrollCallback(m_win, [](GLFWwindow* w, double xOffset, double yOffset)
|
||||
@@ -181,7 +181,7 @@ namespace VE
|
||||
try
|
||||
{
|
||||
event e{ event_target::VE, event_type::MOUSE_SCROLL, std::pair<float, float>{ static_cast<float>(xOffset), static_cast<float>(yOffset) } };
|
||||
EMIT(e);
|
||||
VE_EMIT(e);
|
||||
}
|
||||
catch(std::exception& e)
|
||||
{
|
||||
@@ -194,7 +194,7 @@ namespace VE
|
||||
try
|
||||
{
|
||||
event e{ event_target::VE, event_type::MOUSE_CURSOR_POSITION, std::pair<float, float>{ static_cast<float>(xPos), static_cast<float>(yPos) } };
|
||||
EMIT(e);
|
||||
VE_EMIT(e);
|
||||
}
|
||||
catch(std::exception& e)
|
||||
{
|
||||
@@ -216,7 +216,7 @@ namespace VE
|
||||
try
|
||||
{
|
||||
event e{ event_target::VE, event_type::WINDOW_RESIZE, std::pair<float, float>{ static_cast<float>(width), static_cast<float>(height) } };
|
||||
EMIT(e);
|
||||
VE_EMIT(e);
|
||||
}
|
||||
catch(std::exception& e)
|
||||
{
|
||||
@@ -229,7 +229,7 @@ namespace VE
|
||||
try
|
||||
{
|
||||
event e{ event_target::VE, event_type::WINDOW_CLOSE, nullptr };
|
||||
EMIT(e);
|
||||
VE_EMIT(e);
|
||||
}
|
||||
catch(std::exception& e)
|
||||
{
|
||||
@@ -242,7 +242,7 @@ namespace VE
|
||||
try
|
||||
{
|
||||
event e{ event_target::VE, event_type::WINDOW_FOCUS, focused };
|
||||
EMIT(e);
|
||||
VE_EMIT(e);
|
||||
}
|
||||
catch(std::exception& e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user