Fixed left turn mirroring and filter turn signals
This commit is contained in:
parent
89c52d34f4
commit
d945eea992
|
@ -327,7 +327,11 @@ void GameState::ReadKeyInput()
|
|||
{
|
||||
static const float mouseSensitivity = Radian( 1.0f );
|
||||
this->privData->camera.PitchDown( this->privData->input->GetPitch() * mouseSensitivity );
|
||||
this->privData->nwClient->Send( Protocol_PlayerLeftTurn(this->privData->input->GetYaw() * mouseSensitivity) );
|
||||
float yaw = this->privData->input->GetYaw();
|
||||
if( yaw != 0.0f )
|
||||
{
|
||||
this->privData->nwClient->Send( Protocol_PlayerLeftTurn(yaw * mouseSensitivity) );
|
||||
}
|
||||
}
|
||||
|
||||
// shoot
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
<ClCompile Include="Source\Win32\Win32Mouse.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Include\ApplicationKeyboard.h" />
|
||||
<ClInclude Include="Include\Common.h" />
|
||||
<ClInclude Include="Include\Input.h" />
|
||||
<ClInclude Include="Include\InputManager.h" />
|
||||
|
@ -35,6 +36,7 @@
|
|||
<ClInclude Include="Include\Keyboard.h" />
|
||||
<ClInclude Include="Include\Mouse.h" />
|
||||
<ClInclude Include="Include\PreReq.h" />
|
||||
<ClInclude Include="Include\Win32\Win32ApplicationKeyboard.h" />
|
||||
<ClInclude Include="Include\Win32\Win32Input.h" />
|
||||
<ClInclude Include="Include\Win32\Win32Keyboard.h" />
|
||||
<ClInclude Include="Include\Win32\Win32Mouse.h" />
|
||||
|
|
|
@ -189,7 +189,7 @@ float InputClass::GetPitch( )
|
|||
float InputClass::GetYaw( )
|
||||
{
|
||||
float dX = (static_cast<float>( m_mouseState.lX)/5);
|
||||
return -dX;
|
||||
return dX;
|
||||
}
|
||||
|
||||
bool InputClass::IsMousePressed()
|
||||
|
|
Loading…
Reference in New Issue