Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved New Input System Issue

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

  1. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    808
    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:
    808
    I was mistaken please close this thread. It hasn’t been implemented yet.