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
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
- "Assertion failed on expression" error occurs when multiple Animation Components are instantiated after changing the Culling Type
- MacOS persistentDataPath uses old path when built compared to Editor Play mode
- Crash on RaiseException when entering Play Mode in a specific project
- Debug Console does not reappear when disabling and re-enabling Debug.developerConsoleEnabled
Resolution Note (fix version 1.0.0-preview.4):
Fixed in https://github.com/Unity-Technologies/InputSystem/pull/965