0

https://facebook.github.io/react-vr/docs/input.html Based on this documentation I have done sample. In browser I can see the mouse pointer which is default. In Android chrome I don't see any cursor or pointer. But touch works and colour of the text is getting updated on touch. When I am switching into VR mode there is no cursor visible.

Attached screen shot for reference. enter image description here

enter image description here

enter image description here

Ganesh Kanna
  • 2,269
  • 1
  • 19
  • 29
  • Possible duplicate of [How do I detect Gear VR inputs in React VR scene?](https://stackoverflow.com/questions/44259273/how-do-i-detect-gear-vr-inputs-in-react-vr-scene) – Valentin Jul 11 '17 at 19:39

2 Answers2

3

meybe this page help u https://github.com/facebook/react-vr/issues/86

So I will try to use https://www.npmjs.com/package/simple-raycaster

1

For the new React360 framework you can also use the SimpleRayCaster:

https://www.npmjs.com/package/simple-raycaster

In your client.js file add the following to the imports:

import SimpleRaycaster from "./SimpleRaycaster";

Then add the following lines after the r360 instance is created:

  r360.controls.addRaycaster(SimpleRaycaster);
  r360.compositor.setCursorVisibility('visible');