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

new MotionController(...) throws exception for "transient-pointer" with ["generic-button"] but no gamepad #257

Open
hybridherbst opened this issue Mar 20, 2024 · 0 comments
Labels
motion-controller motion-controller package

Comments

@hybridherbst
Copy link

hybridherbst commented Mar 20, 2024

Describe the bug
Transient pointers on Vision OS currently have this information:

{
  targetRayMode: "transient-pointer",
  profiles: ["generic-button"],
}

Unfortunately that causes an exception in new MotionController(), likely because updateGamepad() is called with undefined:
https://github.com/immersive-web/webxr-input-profiles/blob/main/packages/motion-controllers/src/component.d.ts#L22

Expected behavior
No exception

Smartphone (please complete the following information):

  • Device: visionPro
  • OS: visionOS
  • Browser Safari
@hybridherbst hybridherbst added the motion-controller motion-controller package label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
motion-controller motion-controller package
Projects
None yet
Development

No branches or pull requests

1 participant