mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- Fixed crash with joysticks with more than 5 axes.
SVN r2941 (trunk)
This commit is contained in:
parent
78cfbe56a1
commit
eb064ebe06
1 changed files with 2 additions and 1 deletions
|
@ -117,7 +117,8 @@ public:
|
|||
// Add to game axes.
|
||||
for (int i = 0; i < GetNumAxes(); ++i)
|
||||
{
|
||||
axes[Axes[i].GameAxis] -= float(((double)SDL_JoystickGetAxis(Device, i)/32768.0) * Multiplier * Axes[i].Multiplier);
|
||||
if(Axes[i].GameAxis != JOYAXIS_None)
|
||||
axes[Axes[i].GameAxis] -= float(((double)SDL_JoystickGetAxis(Device, i)/32768.0) * Multiplier * Axes[i].Multiplier);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue