InputSystem icon indicating copy to clipboard operation
InputSystem copied to clipboard

[iOS][Pen] Phase doesn't go past Began (Is either None or Began, never Stationary or Moved)

Open renaldasrep opened this issue 8 years ago • 3 comments

Found using d9b7c25

Device: iPad Pro using Apple Pen

renaldasrep avatar Oct 03 '18 08:10 renaldasrep

Now it's always stuck on None Version 2019.2.0a7 (dddf9ae2be01) Wed, 20 Feb 2019 14:24:01 GMT Branch: trunk

Package github b223957

renaldasrep avatar Feb 22 '19 12:02 renaldasrep

@Rene-Damm Native PenInputState doesn't have phase variable, but in C# we have this code in Pen.cs

    // "Park" unused controls.
    [InputControl(name = "radius", layout = "Vector2", usage = "Radius", offset = InputStateBlock.kInvalidOffset)]
    [InputControl(name = "pointerId", layout = "Digital", offset = InputStateBlock.kInvalidOffset)] // Will stay at 0.
    [InputControl(name = "phase", layout = "PointerPhase", offset = InputStateBlock.kInvalidOffset)] ////TODO: this should be used

Please advise

todi1856 avatar Feb 27 '19 10:02 todi1856

Closing. Tracked here: https://issuetracker.unity3d.com/issues/ios-pen-phase-doesnt-go-past-began

JiaUnity avatar Apr 09 '19 22:04 JiaUnity