• Jacob DeWitt's avatar
    WebXR Gamepad input layout test · 9f2651be
    Jacob DeWitt authored
    Verifies the following behavior for WebXR Gamepads:
    1) Changes to the button and input axis values for the mock gamepad
       object make their way through all the plumbing and on to the session's
       input source's Gamepad.
    2) Changing button and input axis values cause the Gamepad to be updated
       in-place. XRInputSource and Gamepad objects should not be re-created
       in this case and an inputsourceschange event should not be fired.
    
    Bug: 976978
    Change-Id: I6de7a45e357e6900eccca103741dddc33fc9d495
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1673083Reviewed-by: default avatarAlexander Cooper <alcooper@chromium.org>
    Commit-Queue: Jacob DeWitt <jacde@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#671898}
    9f2651be
xr-internal-device-mocking.js 7.57 KB