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

MotionController / Component enhancement: Separate out updates to visuals and values from gamepad #236

Open
DevPika opened this issue Nov 15, 2022 · 0 comments

Comments

@DevPika
Copy link

DevPika commented Nov 15, 2022

The current implementation of Components in motion-controllers package updates both values and visuals inside updateFromGamepad. However, in some cases developers might be interested in updating the components with the latest gamepad values only without computing new Visual Responses, for instance if they are using the library only to send out WebXR controller/gamepad events.

Link to relevant example of a use case (using motion-controllers and three.js)
Link to exact call to package where this would be useful

Suggested improvement: Move the functionality related to updating the Components values from gamepad (L52 to L96) to a separate public method without changing the existing API.

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

1 participant