From e7ef3f208c109357538b1f68af10bcd78db95c95 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Fri, 8 Apr 2022 22:30:12 -0700 Subject: Changeset: 3 More work --- source/App.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source/App.hpp') diff --git a/source/App.hpp b/source/App.hpp index 5a701d0..b861730 100644 --- a/source/App.hpp +++ b/source/App.hpp @@ -1,5 +1,6 @@ #pragma once +#include "EditorCoreAPI.hpp" #include "Player.hpp" #include "PodVector.hpp" #include "World.hpp" @@ -7,18 +8,30 @@ #define GLFW_INCLUDE_NONE #include +#include +#include #include #include +using KeyCaptureCallback = std::function; + class App { private: + std::deque mKeyCaptureCallbacks; PodVector mPlayers; + EditorInstance* mEditor; std::unique_ptr mCurrentWorld; + bool mEditorShown = true; + bool mInitialized = false; public: void Init(); void Shutdown(); void Show(); + void HandleMouse(int button, int action); + void HandleMouseMotion(double xOff, double yOff); void HandleKey(GLFWkeyboard* keyboard, int key, int action); + + void PushKeyCaptureCallback(KeyCaptureCallback callback); }; -- cgit v1.2.3-70-g09d2