Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
renaldasrep opened this issue Oct 3, 2018 · 3 comments

Comments

@renaldasrep
Copy link

Found using d9b7c25

Device: iPad Pro using Apple Pen

@renaldasrep
Copy link
Author

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

@todi1856
Copy link
Member

@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

@JiaUnity
Copy link
Contributor

JiaUnity commented Apr 9, 2019

@JiaUnity JiaUnity closed this as completed Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants