InputSystem icon indicating copy to clipboard operation
InputSystem copied to clipboard

[iOS][Pen] Tilt is not normalized

Open renaldasrep opened this issue 8 years ago • 4 comments

Found using d9b7c25

Device: iPad Pro using Apple Pen

Actual behaviour: Pen.twist is always 0 Pen.tilt.y values is hanging when Pen is rotated, but the range is something like [-3.1 ... 3.1] (might not exactly be that, but that's what I detected visually)

Expected behaviour: Pen.twist (if supported) is 0 when the pen's rotation faces up and away from the user Pen.twist (if supported) increases as the pen is rotated clockwise around itself Pen.twist (if supported) is ~1 when the pen has been rotated one turn

renaldasrep avatar Oct 03 '18 08:10 renaldasrep

twist doing nothing is to be expected. There's few pens that support this. Actually, the only one I'm aware of is the Wacom Art Pen.

tilt should be normalized so that's a thing.

Rene-Damm avatar Jan 14 '19 23:01 Rene-Damm

This is actually a duplicate of https://github.com/Unity-Technologies/InputSystem/issues/266.

P.S I don't think you can normalize tilt, if pen is fully perpendicular to the screen, where in that case tilt will be (0, 0).

If tilt would be 3D vector, then it would be (0, 0, 1)

todi1856 avatar Feb 15 '19 14:02 todi1856

This bug is marked as Won't Fix on FB side. Can close.

JiaUnity avatar Feb 15 '19 19:02 JiaUnity

Verified as fixed

Version 2019.2.0a6 (d24f6c6b0098) Thu, 21 Feb 2019 15:09:23 GMT Branch: input/new/ios

Github package b223957

renaldasrep avatar Feb 22 '19 13:02 renaldasrep