Search Issue Tracker

Fixed in 1.0.0-preview.4

Votes

1

Found in [Package]

1.0.0

Issue ID

1196522

Regression

No

[New Input System] PlayerInput generates error from touch events for new WebGL touch device

Package: Input System

-

I am adding touch support for the new input system for the WebGL platform. All touch events seem to be working correctly, demos all work, but when I have a PlayerInput component in the scene, even empty with no action map, it generates the following error:
"cannot read control '/Touchscreen/pressure' from STAT with fourmat TOUC; device 'Touchscreen:/Touchscreen' expects format TSCR"

The error is being generated from the function InputUser.OnEvent. The InputDevice for the touch event is "Touchscreen:/Touchscreen". The function iterates over device.allControls, and errors on the first control, "Analog:/Touchscreen/pressure" when it calls control.GetStatePtrFromStateEvent.

The WebGL platform touch event code being can be found at:
https://github.cds.internal.unity3d.com/unity/unity/compare/platform/webgl/new_input_touch

  1. Resolution Note (fix version 1.0.0-preview.4):

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.