BlisterUI.Input.InputManager.RemoveGamePad C# (CSharp) Method

RemoveGamePad() public method

public RemoveGamePad ( PlayerIndex index ) : void
index PlayerIndex
return void
        public void RemoveGamePad(PlayerIndex index)
        {
            for(int i = 0; i < numPads; i++) {
                if(gamePadManagers[i].Index == index) {
                    gamePadManagers[i] = null;
                    numPads--;
                    for(; i < numPads; i++) {
                        gamePadManagers[i] = gamePadManagers[i + 1];
                    }
                    return;
                }
            }
        }