From bb063767193a4573d743a3bd67644b4ff396a68a Mon Sep 17 00:00:00 2001 From: Vulpovile Date: Thu, 9 Nov 2023 11:24:08 -0800 Subject: [PATCH] Create input service --- Blocks3D VS2003.vcproj | 3 +++ src/include/DataModelV3/InputService.h | 11 +++++++++++ src/include/Globals.h | 1 - src/source/Globals.cpp | 1 - 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 src/include/DataModelV3/InputService.h diff --git a/Blocks3D VS2003.vcproj b/Blocks3D VS2003.vcproj index 7344810..3c1f633 100644 --- a/Blocks3D VS2003.vcproj +++ b/Blocks3D VS2003.vcproj @@ -378,6 +378,9 @@ + + diff --git a/src/include/DataModelV3/InputService.h b/src/include/DataModelV3/InputService.h new file mode 100644 index 0000000..7d0c0fc --- /dev/null +++ b/src/include/DataModelV3/InputService.h @@ -0,0 +1,11 @@ +//Should potentially make a "Service" class +#pragma once +#include "Instance.h" + +namespace B3D{ + class InputService : public Instance{ + InputService(void); + InputService~(void); + pollKeyState(int key); + } +} \ No newline at end of file diff --git a/src/include/Globals.h b/src/include/Globals.h index 71ef4df..567c244 100644 --- a/src/include/Globals.h +++ b/src/include/Globals.h @@ -25,7 +25,6 @@ public: extern std::vector postRenderStack; extern bool running; extern DataModelInstance* g_dataModel; -extern XplicitNgine* g_xplicitNgine; extern Application* g_usableApp; extern SkyRef g_sky; extern RenderDevice g_renderDevice; diff --git a/src/source/Globals.cpp b/src/source/Globals.cpp index 721285b..ed932fb 100644 --- a/src/source/Globals.cpp +++ b/src/source/Globals.cpp @@ -5,7 +5,6 @@ bool Globals::useMousePoint = false; std::vector postRenderStack = std::vector(); DataModelInstance* g_dataModel = NULL; -XplicitNgine* g_xplicitNgine = NULL; bool running = false; POINT Globals::mousepoint;