diff --git a/src/sdl/i_joystick.cpp b/src/sdl/i_joystick.cpp index d7e81d70d..79aa9e91f 100644 --- a/src/sdl/i_joystick.cpp +++ b/src/sdl/i_joystick.cpp @@ -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); } }