最後のイベントに比べて、マウスの相対的な動きを返す
Used in EventType.MouseMove, EventType.MouseDrag, EventType.ScrollWheel events.
Additional resources: Event.mousePosition.
using UnityEngine;
public class Example : MonoBehaviour { // Move the scroll wheel to determine // the X & Y scrolling amount. void OnGUI() { Event e = Event.current; if (e.isMouse) { Debug.Log(e.delta); } } }