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

expose VR displays from THREE.VREffect/THREE.VRControls #9133

Closed
wants to merge 1 commit into from
Closed

expose VR displays from THREE.VREffect/THREE.VRControls #9133

wants to merge 1 commit into from

Conversation

cvan
Copy link
Contributor

@cvan cvan commented Jun 15, 2016

No description provided.

function gotVRDevices( devices ) {
function gotVRDevices ( devices ) {

scope.displays = devices;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is sneaky... I would, instead, define a local variable displays and add a .getDisplays() public method.

Copy link
Owner

@mrdoob mrdoob Jun 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I guess .getDevices() would match the WebVR API better?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had that originally; can change, for sure. well, actually the v1.0 API calls for navigator.getVRDisplays() instead of navigator.getVRDevices(), so I'd suggest the former.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good!

@mrdoob
Copy link
Owner

mrdoob commented Jun 30, 2016

Ended up adding getVRDisplay() and getVRDisplays() 😊

@mrdoob mrdoob closed this Jun 30, 2016
@cvan
Copy link
Contributor Author

cvan commented Jun 30, 2016

awesome, thanks!

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

Successfully merging this pull request may close these issues.

2 participants