Merge branch 'Input' of https://github.com/dean11/Danbias into GameServer
This commit is contained in:
commit
e954180e22
|
@ -166,6 +166,7 @@ namespace DanBias
|
||||||
DanBiasGame::Result DanBiasGame::Update(float deltaTime)
|
DanBiasGame::Result DanBiasGame::Update(float deltaTime)
|
||||||
{
|
{
|
||||||
{ // updating mouse input
|
{ // updating mouse input
|
||||||
|
// TODO: Is obosolete when Dennis's input system is wired in
|
||||||
POINT mousePos;
|
POINT mousePos;
|
||||||
GetCursorPos( &mousePos );
|
GetCursorPos( &mousePos );
|
||||||
|
|
||||||
|
|
|
@ -79,9 +79,10 @@ GameClientState::ClientState MainState::Update( float deltaTime )
|
||||||
{
|
{
|
||||||
bool test = this->privData->input->IsMousePressed();
|
bool test = this->privData->input->IsMousePressed();
|
||||||
if(test)
|
if(test)
|
||||||
{
|
{ // HACK: debug trap still in use?
|
||||||
int i = 0;
|
int i = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
this->privData->input->GetMousePos( mouseState.x, mouseState.y );
|
this->privData->input->GetMousePos( mouseState.x, mouseState.y );
|
||||||
mouseState.mouseButtonPressed = this->privData->input->IsMousePressed();
|
mouseState.mouseButtonPressed = this->privData->input->IsMousePressed();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -224,7 +224,7 @@ namespace Oyster
|
||||||
#else
|
#else
|
||||||
API::State API::ReloadShaders()
|
API::State API::ReloadShaders()
|
||||||
{
|
{
|
||||||
|
return API::State::Sucsess;
|
||||||
}
|
}
|
||||||
|
|
||||||
void API::StartRenderWireFrame()
|
void API::StartRenderWireFrame()
|
||||||
|
|
|
@ -38,7 +38,7 @@ namespace Oyster
|
||||||
typedef void* Texture;
|
typedef void* Texture;
|
||||||
|
|
||||||
static State Init(HWND Window, bool MSAA_Quality, bool Fullscreen, Option options);
|
static State Init(HWND Window, bool MSAA_Quality, bool Fullscreen, Option options);
|
||||||
#ifdef _DEBUG
|
|
||||||
static State ReloadShaders();
|
static State ReloadShaders();
|
||||||
|
|
||||||
//should be called after rendered normal models, before GUI or Text rendering
|
//should be called after rendered normal models, before GUI or Text rendering
|
||||||
|
@ -51,7 +51,6 @@ namespace Oyster
|
||||||
static void RenderDebugSphere(Math::Matrix world);
|
static void RenderDebugSphere(Math::Matrix world);
|
||||||
|
|
||||||
static void StartRenderFullModel();
|
static void StartRenderFullModel();
|
||||||
#endif
|
|
||||||
|
|
||||||
//! @todo Memory Leaks
|
//! @todo Memory Leaks
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue