public static string GetButtonLabel(JoyInput command)
    {
        if (command.joyAxis != E_JoystickAxis.NONE)
        {
            return(GamepadAxis.GetAxisLabel(command.joyAxis));
        }
        else
        {
#if MADFINGER_KEYBOARD_MOUSE
            switch (command.key)
            {
            case KeyCode.Mouse0:
                return("Mouse Left");

            case KeyCode.Mouse1:
                return("Mouse Right");

            case KeyCode.Mouse5:
                return("Mouse Wheel Down");

            case KeyCode.Mouse6:
                return("Mouse Wheel Up");
            }
#endif
            string keyName = command.key.ToString();
            if (keyName.StartsWith("Joystick0") || keyName.StartsWith("Joystick1") || keyName.StartsWith("Joystick2") ||
                keyName.StartsWith("Joystick3") || keyName.StartsWith("Joystick4"))
            {
                keyName = keyName.Substring(9);
            }
            else if (keyName.StartsWith("Joystick"))
            {
                keyName = keyName.Substring(8);
            }

            return(keyName);
        }
    }