Create input service
This commit is contained in:
@@ -378,6 +378,9 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath=".\src\include\DataModelV3\GroupInstance.h">
|
RelativePath=".\src\include\DataModelV3\GroupInstance.h">
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\include\DataModelV3\InputService.h">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\include\DataModelV3\Instance.h">
|
RelativePath=".\src\include\DataModelV3\Instance.h">
|
||||||
</File>
|
</File>
|
||||||
|
|||||||
11
src/include/DataModelV3/InputService.h
Normal file
11
src/include/DataModelV3/InputService.h
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -25,7 +25,6 @@ public:
|
|||||||
extern std::vector<Instance*> postRenderStack;
|
extern std::vector<Instance*> postRenderStack;
|
||||||
extern bool running;
|
extern bool running;
|
||||||
extern DataModelInstance* g_dataModel;
|
extern DataModelInstance* g_dataModel;
|
||||||
extern XplicitNgine* g_xplicitNgine;
|
|
||||||
extern Application* g_usableApp;
|
extern Application* g_usableApp;
|
||||||
extern SkyRef g_sky;
|
extern SkyRef g_sky;
|
||||||
extern RenderDevice g_renderDevice;
|
extern RenderDevice g_renderDevice;
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ bool Globals::useMousePoint = false;
|
|||||||
std::vector<Instance*> postRenderStack = std::vector<Instance*>();
|
std::vector<Instance*> postRenderStack = std::vector<Instance*>();
|
||||||
|
|
||||||
DataModelInstance* g_dataModel = NULL;
|
DataModelInstance* g_dataModel = NULL;
|
||||||
XplicitNgine* g_xplicitNgine = NULL;
|
|
||||||
|
|
||||||
bool running = false;
|
bool running = false;
|
||||||
POINT Globals::mousepoint;
|
POINT Globals::mousepoint;
|
||||||
|
|||||||
Reference in New Issue
Block a user