From 76f0b712b17d90d84792a5fedd9ab9103dcae797 Mon Sep 17 00:00:00 2001 From: Dander7BD Date: Fri, 14 Feb 2014 10:32:25 +0100 Subject: [PATCH] Revert this added printout of mouse state values in MainState --- Code/Game/DanBiasGame/GameClientState/MainState.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Code/Game/DanBiasGame/GameClientState/MainState.cpp b/Code/Game/DanBiasGame/GameClientState/MainState.cpp index dc6f88b3..3c82fc05 100644 --- a/Code/Game/DanBiasGame/GameClientState/MainState.cpp +++ b/Code/Game/DanBiasGame/GameClientState/MainState.cpp @@ -67,6 +67,8 @@ bool MainState::Init( NetworkClient* nwClient ) return true; } +float mouseX, mouseY; // debug test + GameClientState::ClientState MainState::Update(float deltaTime, InputClass* KeyInput) { MouseInput mouseState; @@ -78,6 +80,9 @@ GameClientState::ClientState MainState::Update(float deltaTime, InputClass* KeyI EventHandler::Instance().Update( mouseState ); + mouseX = mouseState.x; // debug test + mouseY = mouseState.y; // debug test + return this->privData->nextState; } @@ -92,6 +97,9 @@ bool MainState::Render() Graphics::API::StartTextRender(); this->privData->guiElements.RenderText(); + Graphics::API::RenderText( ::std::to_wstring(mouseX), Float2(0.2f, 0.5f), Float2(0.2f, 0.05f) ); // debug test + Graphics::API::RenderText( ::std::to_wstring(mouseY), Float2(0.5f, 0.5f), Float2(0.2f, 0.05f) ); // debug test + Graphics::API::EndFrame(); return true; }