Exemplo n.º 1
0
 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++;
     }
 }
Exemplo n.º 2
0
 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++;
     }
 }