public IMouseInputSource GetMouseInputSource(int playerId, int mouseIndex)
        {
            if (mouseIndex < 0)
            {
                throw new ArgumentOutOfRangeException(nameof(mouseIndex));
            }
            if (this.m_MouseInputSourcesList.Count == 0 && this.IsDefaultPlayer(playerId))
            {
                return(this.defaultMouseInputSource);
            }
            int count = this.m_MouseInputSourcesList.Count;
            int num   = 0;

            for (int index = 0; index < count; ++index)
            {
                IMouseInputSource mouseInputSources = this.m_MouseInputSourcesList[index];
                if (!UnityTools.IsNullOrDestroyed <IMouseInputSource>((M0)mouseInputSources) && mouseInputSources.get_playerId() == playerId)
                {
                    if (mouseIndex == num)
                    {
                        return(mouseInputSources);
                    }
                    ++num;
                }
            }
            return((IMouseInputSource)null);
        }
        public int GetMouseInputSourceCount(int playerId)
        {
            if (this.m_MouseInputSourcesList.Count == 0 && this.IsDefaultPlayer(playerId))
            {
                return(1);
            }
            int count = this.m_MouseInputSourcesList.Count;
            int num   = 0;

            for (int index = 0; index < count; ++index)
            {
                IMouseInputSource mouseInputSources = this.m_MouseInputSourcesList[index];
                if (!UnityTools.IsNullOrDestroyed <IMouseInputSource>((M0)mouseInputSources) && mouseInputSources.get_playerId() == playerId)
                {
                    ++num;
                }
            }
            return(num);
        }