diff --git a/src/addons/playernum.cpp b/src/addons/playernum.cpp index d71c377c2..c9531080b 100644 --- a/src/addons/playernum.cpp +++ b/src/addons/playernum.cpp @@ -49,15 +49,8 @@ void PlayerNumAddon::process() InputMode inputMode = static_cast(gamepad->getOptions().inputMode); if ( inputMode == INPUT_MODE_XINPUT ) { if (gamepad->auxState.playerID.enabled && gamepad->auxState.playerID.active) { - XInputPLEDPattern ledAction = (XInputPLEDPattern)gamepad->auxState.playerID.value; - if ( ledAction == XINPUT_PLED_ON1 ) - handleLED(1); - else if ( ledAction == XINPUT_PLED_ON2 ) - handleLED(2); - else if ( ledAction == XINPUT_PLED_ON3 ) - handleLED(3); - else if ( ledAction == XINPUT_PLED_ON4 ) - handleLED(4); + if ( gamepad->auxState.playerID.value != 0 ) + handleLED(gamepad->auxState.playerID.value); } } else { assigned = 1;