// Token: 0x060022C7 RID: 8903 RVA: 0x000A4350 File Offset: 0x000A2550 protected void LateUpdate() { bool flag = this.cursorOpenerCount > 0 && base.currentInputModule && base.currentInputModule.input; this.SetCursorIndicatorEnabled(flag); MPInputModule mpinputModule = base.currentInputModule as MPInputModule; if (flag) { CursorIndicatorController.CursorSet cursorSet = this.cursorIndicatorController.noneCursorSet; MPEventSystem.InputSource currentInputSource = this.currentInputSource; if (currentInputSource != MPEventSystem.InputSource.Keyboard) { if (currentInputSource == MPEventSystem.InputSource.Gamepad) { cursorSet = this.cursorIndicatorController.gamepadCursorSet; } } else { cursorSet = this.cursorIndicatorController.mouseCursorSet; } this.cursorIndicatorController.SetCursor(cursorSet, this.isHovering ? CursorIndicatorController.CursorImage.Hover : CursorIndicatorController.CursorImage.Pointer, this.GetColor()); this.cursorIndicatorController.SetPosition(mpinputModule.input.mousePosition); } }
// Token: 0x060022EC RID: 8940 RVA: 0x000A4BC0 File Offset: 0x000A2DC0 protected override void ProcessDrag(PlayerPointerEventData pointerEvent) { if (!pointerEvent.IsPointerMoving() || !this.useCursor || pointerEvent.pointerDrag == null) { return; } if (!pointerEvent.dragging && MPInputModule.ShouldStartDrag(pointerEvent.pressPosition, pointerEvent.position, (float)base.eventSystem.pixelDragThreshold, pointerEvent.useDragThreshold)) { ExecuteEvents.Execute <IBeginDragHandler>(pointerEvent.pointerDrag, pointerEvent, ExecuteEvents.beginDragHandler); pointerEvent.dragging = true; } if (pointerEvent.dragging) { 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); } }