private void InitInputDetection()
{
// Clean.
m_Controllers.Clear();
// Initialize the controller inputs.
string[] joysticks = Input.GetJoystickNames();
for (int i = 0; i < joysticks.Length && i < NB_CONTROLLERS; ++i)
{
Debug.Log("Joystick Name: " + joysticks[i]);
// Detect and add the controller.
AddController(CreateController(joysticks[i]));
}
}