public void SetButtonState(
     int button,
     PointerEventData.FramePressState stateForMouseButton,
     PlayerPointerEventData data)
 {
     RewiredPointerInputModule.ButtonState buttonState = this.GetButtonState(button);
     buttonState.eventData.buttonState = stateForMouseButton;
     buttonState.eventData.buttonData  = data;
 }
 public RewiredPointerInputModule.ButtonState GetButtonState(
     int button)
 {
     RewiredPointerInputModule.ButtonState buttonState = (RewiredPointerInputModule.ButtonState)null;
     for (int index = 0; index < this.m_TrackedButtons.Count; ++index)
     {
         if (this.m_TrackedButtons[index].button == button)
         {
             buttonState = this.m_TrackedButtons[index];
             break;
         }
     }
     if (buttonState == null)
     {
         buttonState = new RewiredPointerInputModule.ButtonState()
         {
             button    = button,
             eventData = new RewiredPointerInputModule.MouseButtonEventData()
         };
         this.m_TrackedButtons.Add(buttonState);
     }
     return(buttonState);
 }
            // Token: 0x06002D4E RID: 11598 RVA: 0x0013AFA4 File Offset: 0x001391A4
            public RewiredPointerInputModule.ButtonState GetButtonState(int button)
            {
                RewiredPointerInputModule.ButtonState buttonState = null;
                for (int i = 0; i < this.m_TrackedButtons.Count; i++)
                {
                    if (this.m_TrackedButtons[i].button == button)
                    {
                        buttonState = this.m_TrackedButtons[i];
IL_3D:
                        if (buttonState == null)
                        {
                            buttonState = new RewiredPointerInputModule.ButtonState
                            {
                                button    = button,
                                eventData = new RewiredPointerInputModule.MouseButtonEventData()
                            };
                            this.m_TrackedButtons.Add(buttonState);
                        }
                        return(buttonState);
                    }
                }
                goto IL_3D;
            }