I've been trying to get two controllers working in a MonoGame Project I'm working on and the only Controller that seems to work is 'PlayerIndex.One'. I've tried switching the controller indexes and it won't work whenever it is on anything except 'PlayerIndex.One'
Here is my code, it runs without errors but it still won't work.
if (Robot.IsConnected)
{
if (GamePad.GetState(PlayerIndex.One).IsButtonDown(Buttons.A) || GamePad.GetState(PlayerIndex.One).IsButtonDown(Buttons.B) || GamePad.GetState(PlayerIndex.One).IsButtonDown(Buttons.Y) || GamePad.GetState(PlayerIndex.One).IsButtonDown(Buttons.X))
{
if (GamePad.GetState(PlayerIndex.One).Buttons.Y == ButtonState.Pressed)
{
Robot.SendMessage(driveRobot, straight);
}
if (Robot2.IsConnected)
{
if (GamePad.GetState(PlayerIndex.Two).IsButtonDown(Buttons.A) || GamePad.GetState(PlayerIndex.Two).IsButtonDown(Buttons.B) || GamePad.GetState(PlayerIndex.Two).IsButtonDown(Buttons.Y) || GamePad.GetState(PlayerIndex.Two).IsButtonDown(Buttons.X))
{
if (GamePad.GetState(PlayerIndex.Two).Buttons.Y == ButtonState.Pressed)
{
Robot.SendMessage(driveRobot2, straight);
}