From 2bfcda3b506c1b5641c441f2c9705edc9ee5486c Mon Sep 17 00:00:00 2001 From: Dander7BD Date: Fri, 14 Feb 2014 11:32:16 +0100 Subject: [PATCH] MousePos available in all relevant states --- Code/Game/DanBiasGame/GameClientState/LanMenuState.cpp | 3 +-- Code/Game/DanBiasGame/GameClientState/LobbyAdminState.cpp | 3 +-- Code/Game/DanBiasGame/GameClientState/LobbyState.cpp | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Code/Game/DanBiasGame/GameClientState/LanMenuState.cpp b/Code/Game/DanBiasGame/GameClientState/LanMenuState.cpp index 0d92ee72..63ea4228 100644 --- a/Code/Game/DanBiasGame/GameClientState/LanMenuState.cpp +++ b/Code/Game/DanBiasGame/GameClientState/LanMenuState.cpp @@ -80,8 +80,7 @@ GameClientState::ClientState LanMenuState::Update(float deltaTime, InputClass* K { MouseInput mouseState; { - mouseState.x = KeyInput->GetPitch(); - mouseState.y = KeyInput->GetYaw(); + KeyInput->GetMousePos( mouseState.x, mouseState.y ); mouseState.mouseButtonPressed = KeyInput->IsMousePressed(); } diff --git a/Code/Game/DanBiasGame/GameClientState/LobbyAdminState.cpp b/Code/Game/DanBiasGame/GameClientState/LobbyAdminState.cpp index 21afb54b..ccf6bbf0 100644 --- a/Code/Game/DanBiasGame/GameClientState/LobbyAdminState.cpp +++ b/Code/Game/DanBiasGame/GameClientState/LobbyAdminState.cpp @@ -70,8 +70,7 @@ GameClientState::ClientState LobbyAdminState::Update(float deltaTime, InputClass MouseInput mouseState; { - mouseState.x = KeyInput->GetPitch(); - mouseState.y = KeyInput->GetYaw(); + KeyInput->GetMousePos( mouseState.x, mouseState.y ); mouseState.mouseButtonPressed = KeyInput->IsMousePressed(); } diff --git a/Code/Game/DanBiasGame/GameClientState/LobbyState.cpp b/Code/Game/DanBiasGame/GameClientState/LobbyState.cpp index 37f10f1d..5dd2bc9b 100644 --- a/Code/Game/DanBiasGame/GameClientState/LobbyState.cpp +++ b/Code/Game/DanBiasGame/GameClientState/LobbyState.cpp @@ -70,8 +70,7 @@ GameClientState::ClientState LobbyState::Update(float deltaTime, InputClass* Key MouseInput mouseState; { - mouseState.x = KeyInput->GetPitch(); - mouseState.y = KeyInput->GetYaw(); + KeyInput->GetMousePos( mouseState.x, mouseState.y ); mouseState.mouseButtonPressed = KeyInput->IsMousePressed(); }