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
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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Render Graph Viewer] Resource list icons cropped and in inconsistent positions
- Scene View with Debug Draw Mode enabled is gray when GPU Resident Drawer is enabled
- The UI is not visible when resizing out of focus built Player window with Application.runInBackground set to false
- [Linux] "Error while reading movie" errors are thrown when opening templates
- Shader warnings are being thrown after building Mixed Reality Template
Resolution Note (fix version 1.0.0-preview.4):
Fixed in https://github.com/Unity-Technologies/InputSystem/pull/965