A problem with removing StyleI.player: an obscure difference
between StyleI.player and MenuI.player is that StyleI is set even if there's no attached MenuButton, and MenuI.player is set even if there's no attached column. That's an odd distinction, anyway. Move input.MenuI.player to input.pn. This also puts it in the same place as input.mp.
This commit is contained in:
@@ -761,6 +761,14 @@ bool InputMapper::GameToDevice( const GameInput &GameI, int iSlotNum, DeviceInpu
|
||||
return DeviceI.device != DEVICE_NONE;
|
||||
}
|
||||
|
||||
PlayerNumber InputMapper::ControllerToPlayerNumber( GameController controller )
|
||||
{
|
||||
if( GAMESTATE->GetCurrentStyle() )
|
||||
return GAMESTATE->GetCurrentStyle()->ControllerToPlayerNumber(controller);
|
||||
else
|
||||
return (PlayerNumber) controller;
|
||||
}
|
||||
|
||||
void InputMapper::GameToMenu( const GameInput &GameI, MenuInput &MenuI )
|
||||
{
|
||||
const Game* pGame = GAMESTATE->GetCurrentGame();
|
||||
|
||||
Reference in New Issue
Block a user