- 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:
parent
6906e1b0e3
commit
bc3448e958
5 changed files with 28 additions and 32 deletions
|
|
@ -458,16 +458,10 @@ void FDInputJoystick::ProcessInput()
|
|||
|
||||
void FDInputJoystick::AddAxes(float axes[NUM_JOYAXIS])
|
||||
{
|
||||
float mul = Multiplier;
|
||||
if (Button_Speed.bDown)
|
||||
{
|
||||
mul *= 0.5f;
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < Axes.Size(); ++i)
|
||||
{
|
||||
// Add to the game axis.
|
||||
axes[Axes[i].GameAxis] -= float(Axes[i].Value * mul * Axes[i].Multiplier);
|
||||
axes[Axes[i].GameAxis] -= float(Axes[i].Value * Multiplier * Axes[i].Multiplier);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue