Dan doing stuff

This commit is contained in:
Dander7BD 2014-02-20 11:12:53 +01:00
parent 263eba782b
commit a78a4f70f1
3 changed files with 48 additions and 1 deletions

View File

@ -166,6 +166,7 @@ namespace DanBias
DanBiasGame::Result DanBiasGame::Update(float deltaTime)
{
{ // updating mouse input
// TODO: Is obosolete when Dennis's input system is wired in
POINT mousePos;
GetCursorPos( &mousePos );
@ -179,7 +180,7 @@ namespace DanBias
mouseNormalisedY /= (float)(windowVertex.bottom - windowVertex.top);
data.inputObj.Update( mouseNormalisedX, mouseNormalisedY );
}
}
if( data.serverOwner )
{

View File

@ -0,0 +1,22 @@
/////////////////////////////////////////////////////////////////////
// Created by [Dan Andersson] [2014]
/////////////////////////////////////////////////////////////////////
#ifndef INPUT_APPLICATION_KEBOARD_H
#define INPUT_APPLICATION_KEBOARD_H
#include "InputObject.h"
#include <vector>
namespace Input
{
class AplicationKeyboard : public InputObject
{
public:
protected:
AplicationKeyboard();
~AplicationKeyboard();
};
}
#endif // !INPUT_KEBOARD_H

View File

@ -0,0 +1,24 @@
/////////////////////////////////////////////////////////////////////
// Created by [Dan Andersson] [2014]
/////////////////////////////////////////////////////////////////////
#ifndef INPUT_WIN32_APPLICATION_KEBOARD_H
#define INPUT_WIN32_APPLICATION_KEBOARD_H
#include "..\ApplicationKeyboard.h"
//#include <Windows.h>
namespace Input
{
class Win32ApplicationKeyboard :public AplicationKeyboard
{
public:
Win32ApplicationKeyboard();
~Win32ApplicationKeyboard();
private:
};
}
#endif // !INPUT_WIN32_APPLICATION_KEBOARD_H