Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Resolved New Input System Issue

Discussion in '2021.2 Beta' started by MousePods, Jun 30, 2021.

  1. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    812
    Hi,

    I noticed that in Beta 1, this code doesn't work when you simulate touch screen. I am trying to write a pan system so that it works both on PC and mobile, however, it doesn't detect the leftButton for the mouse when Simulate Touch Input From Mouse or Pen is on. I am assuming this is a bug as it worked with the old input system?

    Code (CSharp):
    1. print(Mouse.current.leftButton.isPressed);
    Screen Shot 2021-06-30 at 6.10.01 PM.png
     
    Last edited: Jul 2, 2021
  2. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    812
    I was mistaken please close this thread. It hasn’t been implemented yet.