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

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

Open
@hbj

Description

@hbj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions