Skip to content

Commit

Permalink
Aligned forced player number to new Aux storage, but functionally sti…
Browse files Browse the repository at this point in the history
…ll not working as expected.
  • Loading branch information
mikepparks committed Sep 11, 2024
1 parent 06227da commit e750720
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/addons/playernum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,8 @@ void PlayerNumAddon::process()
InputMode inputMode = static_cast<InputMode>(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;
Expand Down

0 comments on commit e750720

Please sign in to comment.