InputSystem icon indicating copy to clipboard operation
InputSystem copied to clipboard

[Editor] TouchControl.pressure is not initialized

Open todi1856 opened this issue 8 years ago • 2 comments

Try to do Touchscreen.current.touches[0].pressure.ReadObject() in Editor, run it on touch screen monitor, the returned pressure will be not initialized value, it should be either 1.0 (if pressure is not supported) or should vary beween [0..max value]

todi1856 avatar Jun 13 '18 14:06 todi1856

There shouldn't be any uninitialized memory (state memory is MemCleared immediately after allocation) so I'm wondering whether we're actually receiving some garbage data here.

Rene-Damm avatar Jun 15 '18 18:06 Rene-Damm

Closing. Tracked here: https://issuetracker.unity3d.com/issues/editor-touch-touchcontrol-dot-pressure-is-not-initialized

JiaUnity avatar Apr 10 '19 00:04 JiaUnity