Touch input in the Editor

Hi!

I have a Surface Book 2 and would like to use the touchscreen on it to test touch in the editor, however this doesn’t seem to work.

  1. Using the input debugger window, I can see that everything does work there. When I touch the screen and move my finger around I’m getting deltas from the primary touch and touch0
  2. However, when I try to bind Primary touch/Delta like this:

    I’m not getting any response in my game on reading the value from View.
  3. Using other input (like the keyboard and gamepad in the screenshot above) does work

Thanks!

What’s the debugger saying for the “View” action when you are in play mode? Does it list the touch delta control under the action?

So interestingly it doesn’t list the delta, only the keyboard mappings:
5559520--572971--upload_2020-3-6_10-26-12.png

I noticed that every time I try to interact with the touchscreen, the Control Scheme automatically switches over to “Keyboard & Mouse”, not “Touchscreen”. I tried adding the Delta to the “Keyboard & Mouse” control scheme, but it still doesn’t show up in the list in the debugger.

If I manually and forcibly switch the control scheme over to Touchscreen, then everything works:
5559535--572977--upload_2020-3-6_10-30-37.png

But the touch delta doesn’t show up under keyboard and mouse, even though I added it as a control scheme to the mapping.

My guess is this is because our Windows backend isn’t cleanly separating the inputs yet. Meaning, there’s input on the touchscreen and Windows in turn then feed on both the touchscreen and the mouse and we’re not correctly ignoring the latter. So there’s activity on the touchscreen but also on the mouse and thus the whole thing is confused.

Would you mind filing a ticket for this with the Unity bug reporter? This should get looked at.

I already post similar stuff on forum, and log a case for it.