adding editor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include <open_engine/core.hpp>
|
||||
#include <control_layer.hpp>
|
||||
#include <sandbox2d.hpp>
|
||||
#include <e_sandbox2d.hpp>
|
||||
#include <editor.hpp>
|
||||
|
||||
ControlLayer::ControlLayer(OpenEngine::Ref<OpenEngine::Layer> layer)
|
||||
@@ -15,7 +15,7 @@ void ControlLayer::OnUpdate()
|
||||
bool ControlLayer::StopRunning(OpenEngine::KeyPressedEvent& event)
|
||||
{
|
||||
if (event.GetKeyCode() == OE_KEY_ESCAPE) {
|
||||
OpenEngine::Application::Get().StopRunning();
|
||||
OpenEngine::Application::Get().Close();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user