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
- [Linux] Vsync does not work correctly in Game View when using OpenGL
- Edge detection fails, _BlitTexture_TexelSize is 0
- Rotating GameObjects is not possible when transform.up is assigned through script
- [Android] Shadowmap Shadows have graphical errors on Android when the default Screen Recorder setting is turned on
- Editor crashes on physx::PxcDiscreteNarrowPhasePCM or freezes when instantiating many GameObjects
Resolution Note (fix version 1.0.0-preview.4):
Fixed in https://github.com/Unity-Technologies/InputSystem/pull/965