Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. 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:
    737
    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:
    737
    I was mistaken please close this thread. It hasn’t been implemented yet.