mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +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,6 +117,7 @@ public:
|
|||
// Add to game axes.
|
||||
for (int i = 0; i < GetNumAxes(); ++i)
|
||||
{
|
||||
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