public AddGamePad ( PlayerIndex index ) : void | ||
index | PlayerIndex | |
return | void |
public void AddGamePad(PlayerIndex index)
{
if(numPads < 4) {
for(int i = 0; i < numPads; i++) {
if(gamePadManagers[i].Index == index) {
return;
}
}
gamePadManagers[numPads] = new GamePadManager(index);
numPads++;
}
}