title: Unity new input system returning 0 or not working
body: <p>I am trying to use Unity's new input system to simply read the mouse position. I created a <code>StandardMap</code> InputActionMap asset, with a <code>CursorPosition</code> InputAction configured to read the mouse position (&quot;Value &amp; Vector2&quot; action).</p>
  <p>I should be able to read the value of the mouse using something like:</p>
  <pre><code>Vector2 pointerPosition = 
   theInputMapAsset.FindActionMap(&quot;StandardMap&quot;).FindAction(&quot;CursorMovement&quot;).ReadValue&lt;Vector2&gt;();
  </code></pre>
  <p>Unfortunately, <code>pointerPosition</code> always returns 0,0! I tried everything and it doesn't seem to work...</p>
  <p><strong>EDIT:</strong> This situation happens, it turns out, if you have no <code>PlayerInput</code> component that defines a default input handler as noted in: <a href="https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/manual/Components.html" rel="nofollow noreferrer">https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/manual/Components.html</a>
  The answer below does still apply, as it correctly warns that an input map must be explicitly enabled if there is no player input component.</p>