New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 735726 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug
Proj-XR


Participants' hotlists:
VR-Automated-Tests

Show other hotlists

Other hotlists containing this issue:
Hotlist-1


Sign in to add a comment

Can not get axis data while in VR mode

Reported by kvis....@gmail.com, Jun 21 2017

Issue description

Steps to reproduce the problem:
1. make some code to work with gamepads
2. make some code to work with vr

What is the expected behavior?
pressing gamepad axis make some changes to my code (it works great), enter VR, nothing works

What went wrong?
gamepad.axis data always [0,0,0,0]

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 59.0.3071.86  Channel: stable
OS Version: 5
Flash Version:
 
Components: Blink>GamepadAPI
Labels: Proj-VR

Comment 2 by artyo...@gmail.com, Aug 1 2017

Just wanted to file the same issue: Gamepad API doesn't work in WebVR mode, tested on M61.xxxx.12. The reason why - the ContentViewCore doesn't receive dispatchKeyEvent and onGenericMotionEvent due to detached view (it gets detached once entering WebVR mode).

The way to fix: manually propagate dispatchKeyEvent & onGenericMotionEvent from ChromeTabbedActivity to mContentViewCore when in WebVR mode.

Comment 3 by artyo...@gmail.com, Aug 2 2017

BTW, I've created a test case for gamepads-in-WebVR testing: https://artyom17.github.io/webvr.info/samples/XX-gamepads.html
Status: Available (was: Unconfirmed)
Thanks for the investigative work to figure out where the issue originated!
Labels: M-63
Michael, is this something we can and should add to the manual testing plan?
Cc: leilei@chromium.org
Not sure. Thoughts leilei?

Comment 8 by leilei@chromium.org, Sep 14 2017

I don't think it is easy to do manual test, but we can add one automated test to cover it.
If I understand correctly, this wouldn't be testable in ContentShell, so layout tests w/ mocking isn't an option. We should be able to create a mock gamepad device in Java, though.
Labels: -Pri-2 -M-63 M-64 Pri-1
We should really get this fixed...
Labels: -Pri-1 Pri-2
Owner: mthiesse@chromium.org
Status: Assigned (was: Available)
Project Member

Comment 12 by bugdroid1@chromium.org, Nov 22 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/285d7a4fbe0059f85fdfe3ba0e716e7b3c08fcb2

commit 285d7a4fbe0059f85fdfe3ba0e716e7b3c08fcb2
Author: Michael Thiessen <mthiesse@chromium.org>
Date: Wed Nov 22 15:42:56 2017

VR: Connect gamepad and keyboard input to content while in VR.

Note: I've only tested that keyboard works, but gamepad follows the
same path and the fix is trivial.

Also note that gamepads and physical keyboards won't currently work for
VR browser UI.

Bug:  735726 
Change-Id: I7d4fe38a21a0ba8baad7362400db0d1cf63e57c3
Reviewed-on: https://chromium-review.googlesource.com/783793
Reviewed-by: Yash Malik <ymalik@chromium.org>
Commit-Queue: Michael Thiessen <mthiesse@chromium.org>
Cr-Commit-Position: refs/heads/master@{#518641}
[modify] https://crrev.com/285d7a4fbe0059f85fdfe3ba0e716e7b3c08fcb2/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java

Status: Fixed (was: Assigned)
Alright, I think this is fixed, but I couldn't get my xbox controller to work with my phone so I wasn't able to actually test a gamepad. I did test a usb keyboard and that worked.

Please re-open if gamepads still don't work.
Components: Blink>WebXR

Sign in to add a comment