Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

ControllerInfo.getControllers() returning empty array in Oculus Quest #774

Open
hbj opened this issue Dec 27, 2019 · 1 comment · May be fixed by #826
Open

ControllerInfo.getControllers() returning empty array in Oculus Quest #774

hbj opened this issue Dec 27, 2019 · 1 comment · May be fixed by #826

Comments

@hbj
Copy link

hbj commented Dec 27, 2019

Description

I'm trying to access the controllers of the Oculus Quest through this code:

import React from "react";
import {
  AppRegistry,
  StyleSheet,
  Text,
  View,
  VrButton,
  NativeModules
} from "react-360";

const { ControllerInfo } = NativeModules;

export default class Hello360 extends React.Component {

// ...

  constructor(props) {
    super(props);
    ControllerInfo.getControllers().then(result => console.log(result));
  }

// ...

}

AppRegistry.registerComponent("Hello360", () => Hello360);

Expected behavior

result is an array with at least 2 items for the Oculus Quest controllers.

Actual behavior

result is an empty array.

Additional Information

  • 'react-360' package version: 1.1.0
  • 'react-360-web' package version: 1.1.0
  • Operating System: MacOS
  • Browser: Oculus Browser 7.1.2.188843022
  • VR Device: Oculus Quest
@hbj
Copy link
Author

hbj commented Dec 28, 2019

FYI the example at the bottom of the following page works perfectly, it detects the controllers and displays them correctly (position and direction): https://developer.oculus.com/documentation/oculus-browser/latest/concepts/browser-interact-with-controller/.

@usneil usneil linked a pull request Aug 14, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant