public void SetButton()
    {
        /*
         * When the button is pressed, set the button to read whatever input
         * comes in next.
         */
        if (!IsAnythingPluggedIn())
        {
            // Unselect the button.
            EventSystem.current.SetSelectedGameObject(null);
            // Show the error window.
            theErrorController.NoInputError();
        }
        else
        {
            inputIdentifier =
                theInputReaderController.GetInput(inputQueueIndex);
            // Parse the axis data to account for nuances when setting the
            // direction of analog joysticks.
            ParseAxisInput();

            // Unselect the button.
            EventSystem.current.SetSelectedGameObject(null);
        }
    }