Añadido campo ID al jugador
Las balas y los mandos utilizan ahora este ID
This commit is contained in:
@@ -502,6 +502,7 @@ void Director::initOptions()
|
||||
for (int index = 0; index < numPlayers; ++index)
|
||||
{
|
||||
c.index = index;
|
||||
c.playerId = index + 1;
|
||||
c.deviceType = INPUT_USE_GAMECONTROLLER;
|
||||
c.name = "NO NAME";
|
||||
|
||||
@@ -515,7 +516,7 @@ void Director::initOptions()
|
||||
c.buttons.clear();
|
||||
c.buttons.push_back(SDL_CONTROLLER_BUTTON_X);
|
||||
c.buttons.push_back(SDL_CONTROLLER_BUTTON_Y);
|
||||
c.buttons.push_back(SDL_CONTROLLER_BUTTON_RIGHTSHOULDER);
|
||||
c.buttons.push_back(SDL_CONTROLLER_BUTTON_B);
|
||||
c.buttons.push_back(SDL_CONTROLLER_BUTTON_START);
|
||||
c.buttons.push_back(SDL_CONTROLLER_BUTTON_BACK);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user