MousePos available in all relevant states
This commit is contained in:
parent
22f8a6c9ea
commit
2bfcda3b50
|
@ -80,8 +80,7 @@ GameClientState::ClientState LanMenuState::Update(float deltaTime, InputClass* K
|
||||||
{
|
{
|
||||||
MouseInput mouseState;
|
MouseInput mouseState;
|
||||||
{
|
{
|
||||||
mouseState.x = KeyInput->GetPitch();
|
KeyInput->GetMousePos( mouseState.x, mouseState.y );
|
||||||
mouseState.y = KeyInput->GetYaw();
|
|
||||||
mouseState.mouseButtonPressed = KeyInput->IsMousePressed();
|
mouseState.mouseButtonPressed = KeyInput->IsMousePressed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -70,8 +70,7 @@ GameClientState::ClientState LobbyAdminState::Update(float deltaTime, InputClass
|
||||||
|
|
||||||
MouseInput mouseState;
|
MouseInput mouseState;
|
||||||
{
|
{
|
||||||
mouseState.x = KeyInput->GetPitch();
|
KeyInput->GetMousePos( mouseState.x, mouseState.y );
|
||||||
mouseState.y = KeyInput->GetYaw();
|
|
||||||
mouseState.mouseButtonPressed = KeyInput->IsMousePressed();
|
mouseState.mouseButtonPressed = KeyInput->IsMousePressed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -70,8 +70,7 @@ GameClientState::ClientState LobbyState::Update(float deltaTime, InputClass* Key
|
||||||
|
|
||||||
MouseInput mouseState;
|
MouseInput mouseState;
|
||||||
{
|
{
|
||||||
mouseState.x = KeyInput->GetPitch();
|
KeyInput->GetMousePos( mouseState.x, mouseState.y );
|
||||||
mouseState.y = KeyInput->GetYaw();
|
|
||||||
mouseState.mouseButtonPressed = KeyInput->IsMousePressed();
|
mouseState.mouseButtonPressed = KeyInput->IsMousePressed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue