Skip to content

Example/best practice for select events and selectComponentId? #160

Open
@klausw

Description

@klausw

Applications that want to work across a variety of devices likely want to handle XR select events, while also supporting additional inputs where available. To avoid duplicate events or colliding function assignments, it's important to know which gamepad information corresponds to the select event, and if I'm understanding it right, the selectComponentId attribute as described in https://immersive-web.github.io/webxr-input-profiles/packages/registry/#components is intended to provide this information.

However, what's the best way for applications to do this when using the MotionController library? I couldn't find code using the selectComponentId attribute for this in the library or example snippets.

For an xr-standard mapping, the primary trigger would correspond to the "select" component, but applications shouldn't necessarily assume that the select event is a trigger if they want maximum cross-device portability.

Would it be feasible to add an example and/or a helper method to encourage applications to handle this in a compatible way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions