Create input service

This commit is contained in:
Vulpovile
2023-11-09 11:24:08 -08:00
parent 3928307609
commit bb06376719
4 changed files with 14 additions and 2 deletions

View File

@@ -378,6 +378,9 @@
<File
RelativePath=".\src\include\DataModelV3\GroupInstance.h">
</File>
<File
RelativePath=".\src\include\DataModelV3\InputService.h">
</File>
<File
RelativePath=".\src\include\DataModelV3\Instance.h">
</File>

View File

@@ -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);
}
}

View File

@@ -25,7 +25,6 @@ public:
extern std::vector<Instance*> postRenderStack;
extern bool running;
extern DataModelInstance* g_dataModel;
extern XplicitNgine* g_xplicitNgine;
extern Application* g_usableApp;
extern SkyRef g_sky;
extern RenderDevice g_renderDevice;

View File

@@ -5,7 +5,6 @@ bool Globals::useMousePoint = false;
std::vector<Instance*> postRenderStack = std::vector<Instance*>();
DataModelInstance* g_dataModel = NULL;
XplicitNgine* g_xplicitNgine = NULL;
bool running = false;
POINT Globals::mousepoint;