ControllerInputManager.InitInputDetection C# (CSharp) Method

InitInputDetection() private method

private InitInputDetection ( ) : void
return void
    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]));
        }
    }