title: Detect Mouse Wheel Scrolling Input with Unity`s new Input System
body: <p>I'm currently trying to detect the mouse wheel scrolling input for my 2D Game I am currently doing in the Unity Engine.</p>
  <p>I'm using the new Input System and I'm currently stuck with the follwing code.</p>
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  using UnityEngine.InputSystem.Controls;
  
  public class ZoomController : MonoBehaviour
  {
  
  private PlayerControls playerControls;
  
  private void Awake()
  {
      playerControls = new PlayerControls();
  }
  
  
  private void OnEnable()
  {
      playerControls.Enable();
  }
  
  private void OnDisable()
  {
      playerControls.Disable();
  }
  
  void Start()
  {
      
  }
  
  void Update()
  {
  
      if (playerControls.Land.Zoom.ReadValue&lt;Vector2&gt;().y &gt;= 1)
      {
          Debug.Log(&quot;Scroll 1&quot;);
      } else if (playerControls.Land.Zoom.ReadValue&lt;Vector2&gt;().y &lt;= -1)
      {
          Debug.Log(&quot;Scroll 2&quot;);
      }
      
   }
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/6hRgw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6hRgw.png" alt="enter image description here" /></a></p>
  <p>If I run the code nothing happens and I don't know why.</p>