- Removed specific Button_Speed handling from the controllers' AddAxes()

methods. Analog axes now respond Button_Speed and cl_run in exactly the
  same way as digital buttons do.
- Changed rounding slightly for analog axis -> integer in G_BuildTiccmd().
- Fixed: FXInputController::ProcessThumbstick() was slightly off when it
  converted to the range [-1.0,+1.0].


SVN r1733 (trunk)
This commit is contained in:
Randy Heit 2009-07-23 05:37:03 +00:00
commit bc3448e958
5 changed files with 28 additions and 32 deletions

View file

@ -593,18 +593,10 @@ void FRawPS2Controller::NeutralInput()
void FRawPS2Controller::AddAxes(float axes[NUM_JOYAXIS])
{
float mul = Multiplier;
int i;
if (Button_Speed.bDown)
{
mul *= 0.5f;
}
// Add to game axes.
for (i = 0; i < NUM_AXES; ++i)
for (int i = 0; i < NUM_AXES; ++i)
{
axes[Axes[i].GameAxis] -= float(Axes[i].Value * mul * Axes[i].Multiplier);
axes[Axes[i].GameAxis] -= float(Axes[i].Value * Multiplier * Axes[i].Multiplier);
}
}