We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52d7e36 commit b1d1a82Copy full SHA for b1d1a82
src/eventthread.cpp
@@ -440,6 +440,8 @@ void EventThread::process(RGSSThreadData &rtData)
440
case SDL_CONTROLLERAXISMOTION:
441
if(std::abs(event.caxis.value) > rtData.config.axisDeadzone[event.caxis.axis] * 32767)
442
controllerState.axes[event.caxis.axis] = event.caxis.value;
443
+ else
444
+ controllerState.axes[event.caxis.axis] = 0;
445
// Take deadzone into account when storing last input
446
// This is based on percentage, so multiply by the max value
447
if(std::abs(event.caxis.value) > rtData.config.axisDeadzone[event.caxis.axis] * 32767) {
0 commit comments