// Token: 0x0600627A RID: 25210 RVA: 0x00231C10 File Offset: 0x00230010 protected virtual PointerInputModule.MouseState VRCGetMousePointerEventData() { PointerEventData pointerEventData; bool pointerData = base.GetPointerData(-1, out pointerEventData, true); pointerEventData.Reset(); if (pointerData) { pointerEventData.position = this.m_CursorPosition; } Vector2 cursorPosition = this.m_CursorPosition; pointerEventData.delta = cursorPosition - pointerEventData.position; pointerEventData.position = cursorPosition; Vector2 scrollDelta; scrollDelta.x = Input.GetAxis(this.m_HorizontalAxis) * 1500f * Time.deltaTime; scrollDelta.y = Input.GetAxis(this.m_VerticalAxis) * 1500f * Time.deltaTime; if (Mathf.Abs(scrollDelta.x) > Mathf.Abs(scrollDelta.y)) { scrollDelta.y = 0f; } else { scrollDelta.x = 0f; } pointerEventData.scrollDelta = scrollDelta; pointerEventData.button = PointerEventData.InputButton.Left; base.eventSystem.RaycastAll(pointerEventData, this.m_RaycastResultCache); RaycastResult pointerCurrentRaycast = VRCStandaloneInputModule.VRCFindFirstRaycast(this.m_RaycastResultCache); pointerEventData.pointerCurrentRaycast = pointerCurrentRaycast; this.m_RaycastResultCache.Clear(); PointerEventData pointerEventData2; base.GetPointerData(-2, out pointerEventData2, true); base.CopyFromTo(pointerEventData, pointerEventData2); pointerEventData2.button = PointerEventData.InputButton.Right; this.m_VRCMouseState.SetButtonState(PointerEventData.InputButton.Left, this.VRCStateForMouseButton(0), pointerEventData); this.m_VRCMouseState.SetButtonState(PointerEventData.InputButton.Right, this.VRCStateForMouseButton(1), pointerEventData2); return(this.m_VRCMouseState); }
// Token: 0x06006284 RID: 25220 RVA: 0x00232200 File Offset: 0x00230600 protected override void ProcessDrag(PointerEventData pointerEvent) { bool flag = pointerEvent.IsPointerMoving(); if (flag && pointerEvent.pointerDrag != null && !pointerEvent.dragging && VRCStandaloneInputModule.ShouldStartDrag(this.pressWorldPos[pointerEvent], this.m_CursorWorldPos, (float)base.eventSystem.pixelDragThreshold, pointerEvent.useDragThreshold)) { ExecuteEvents.Execute <IBeginDragHandler>(pointerEvent.pointerDrag, pointerEvent, ExecuteEvents.beginDragHandler); pointerEvent.dragging = true; } if (pointerEvent.dragging && flag && pointerEvent.pointerDrag != null) { if (pointerEvent.pointerPress != pointerEvent.pointerDrag) { ExecuteEvents.Execute <IPointerUpHandler>(pointerEvent.pointerPress, pointerEvent, ExecuteEvents.pointerUpHandler); pointerEvent.eligibleForClick = false; pointerEvent.pointerPress = null; pointerEvent.rawPointerPress = null; } ExecuteEvents.Execute <IDragHandler>(pointerEvent.pointerDrag, pointerEvent, ExecuteEvents.dragHandler); } }