Skip to content

Should XRInputSource.profiles changes fire an XRInputSourcesChangeEvent? #783

Closed

Description

@jacobcdewitt

The spec says "When the handedness, targetRayMode, or presence of a gripSpace or gamepad for any XR input sources change for XRSession session, the user agent MUST run the following steps". Would it also make sense to re-create the input source and fire an event when the contents of the profiles array changes?

Activity

  1. jacobcdewitt commented on Jul 30, 2019

    @jacobcdewitt
    Author

    It's worth noting that the profiles is a FrozenArray, which means it probably shouldn't be updated in-place by the browser. Since it also has the [SameObject] attribute, re-creating the XRInputSource seems like the only compliant solution for when the profiles array changes.

    @toji , what are your thoughts on this?

  2. toji commented on Jul 31, 2019

    @toji
    Member

    Yes.

  3. added this to the August 2019 milestone on Jul 31, 2019
  4. self-assigned this
    on Jul 31, 2019
  5. added
    help wantedThis is a good issue for anyone to pick up and work on filing a PR for.
    on Jul 31, 2019
  6. self-assigned this
    on Aug 13, 2019
  7. Manishearth commented on Aug 13, 2019

    @Manishearth
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

fixed by pending PRA PR that is in review will resolve this issue.help wantedThis is a good issue for anyone to pick up and work on filing a PR for.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions