How do I remove the “Please Reconnect Controller” Dialog on XBOX using XNA?

StackOverflow https://stackoverflow.com/questions/10022616

  •  29-05-2021
  •  | 
  •  

Question

In my XNA game, if a player disconnects controller #1, a dialog comes up that says "Please reconnect controller". They can continue playing if they start using controller 2 and I would like to programtically dismiss the dialog in that case. I have found nothing in my online searching and pouring through XNA documentation...

Était-ce utile?

La solution

Unfortunately that message is built into the Xbox 360 firmware, and hence there is no way to control or dismiss it from within the XNA Framework.

Since profiles are associated with controllers on the Xbox 360, that message will always appear when a game is running and a controller is disconnected with a profile still signed in. You should be able to verify this by signing a profile in using another of your controllers, then disconnecting that controller.

You may want to check out this thread over at the XNA Forums for more information on how your game could respond to controller disconnects.

This MSDN article also provides some information on handling controller disconnects.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top