cancel
Showing results for 
Search instead for 
Did you mean: 

Simulating a click in a webview GearVR Native

Mauricio
Honored Guest

I am trying to simulate a click on GearVR inside a webview. Since the content in webview can be any website, it is not under a "controlled environment", I need the user to "click" on the headset, get the X and Y position in the webview and simulate a click. I've tried the MotionEvent.obtain, but it needs to x and y position first to simulate a click, and I don't have, since it is not a real touch.

Any ideas ?

Any help would be great.

2 REPLIES 2

Mauricio
Honored Guest
Anyone? Anyone ?

flynnt
Honored Guest
I don't know what you're using to display the webview, but for figuring out the mapping, you can look at the gvr-events sample in the github.com/gearvrf/GearVRf-Demos repository.