Example #1
0
 // Token: 0x06000244 RID: 580 RVA: 0x0001E80C File Offset: 0x0001CA0C
 public CusPointerInputModule.ButtonState GetButtonState(PointerEventData.InputButton button, int id = 0)
 {
     CusPointerInputModule.ButtonState buttonState = null;
     for (int i = 0; i < this.m_TrackedButtons.Count; i++)
     {
         if (this.m_TrackedButtons[i].button == button)
         {
             if (id == 0)
             {
                 buttonState = this.m_TrackedButtons[i];
             }
             else
             {
                 id--;
             }
             break;
         }
     }
     if (buttonState == null)
     {
         buttonState = new CusPointerInputModule.ButtonState
         {
             button    = button,
             eventData = new CusPointerInputModule.MouseButtonEventData()
         };
         this.m_TrackedButtons.Add(buttonState);
     }
     return(buttonState);
 }
Example #2
0
 // Token: 0x06000245 RID: 581 RVA: 0x0001E8A0 File Offset: 0x0001CAA0
 public void SetButtonState(PointerEventData.InputButton button, PointerEventData.FramePressState stateForMouseButton, PointerEventData data)
 {
     CusPointerInputModule.ButtonState buttonState = this.GetButtonState(button, 0);
     buttonState.eventData.buttonState = stateForMouseButton;
     buttonState.eventData.buttonData  = data;
 }