---
tags:
    - "Cursor"
    - "Move"
    - "Pan"
    - "Look"
    - "Vertical"
---

# Mouse Delta Y

[Input](index.md) / **Mouse Delta Y**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

Returns the vertical delta movement of the Mouse

## Code

```cs
using System;
using UnityEngine.InputSystem;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]

    [Title("Mouse Delta Y")]
    [Category("Input/Mouse Delta Y")]

    [Description("Returns the vertical delta movement of the Mouse")]
    [Image(typeof(IconMove), ColorTheme.Type.Blue, typeof(BadgeY))]

    [Keywords("Cursor", "Move", "Pan", "Look", "Vertical")]

    [Serializable]
    public class TypeNumberInputMouseDeltaY : TypeNumber
    {
        public override double Get(Args args)
        {
            Mouse mouse = Mouse.current;
            return mouse != null ? mouse.delta.ReadValue().y : 0d;
        }

        public override string ToString()
        {
            return "Mouse Delta Y";
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

```

