Misc - Test

This commit is contained in:
Pontus Fransson 2014-01-31 14:31:27 +01:00
parent 8f83dcd413
commit d5f285c089
2 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,9 @@
#include "vld.h" #include "vld.h"
#include "GameClientRecieverFunc.h" #include "GameClientRecieverFunc.h"
#include "../Misc/EventHandler/EventHandler.h"
using namespace Oyster::Event;
namespace DanBias namespace DanBias
{ {
@ -130,6 +133,8 @@ namespace DanBias
HRESULT DanBiasGame::Update(float deltaTime) HRESULT DanBiasGame::Update(float deltaTime)
{ {
EventHandler::Instance();
if(m_data->recieverObj->IsConnected()) if(m_data->recieverObj->IsConnected())
m_data->recieverObj->Update(); m_data->recieverObj->Update();

View File

@ -17,7 +17,7 @@ namespace Oyster
EventHandler(); EventHandler();
~EventHandler(); ~EventHandler();
EventHandler& Instance(); static EventHandler& Instance();
void Update(InputClass* inputObject); void Update(InputClass* inputObject);