Xbox360 controller support

This commit is contained in:
2014-05-13 00:55:32 +02:00
parent 38482431a1
commit d259811795
16 changed files with 552 additions and 163 deletions
+3 -3
View File
@@ -72,12 +72,12 @@ bool Systems::TankSteeringSystem::TankSteeringInputController::OnCommand(const E
}
else if (event.Command == "vertical")
{
m_Vertical = val;
m_Vertical = -val;
}
else if (event.Command == "handbrake")
{
Handbrake = val;
Handbrake = val > 0;
}
return true;
@@ -88,7 +88,7 @@ bool Systems::TankSteeringSystem::TowerSteeringInputController::OnCommand( const
float val = event.Value;
if(event.Command == "tower_rotation")
{
m_TowerDirection = val;
m_TowerDirection = -val;
}
else if(event.Command == "barrel_rotation")
{