IanPhilips / UnityOculusAndroidVRBrowser

3D browser based on GeckoView and Oculus SDK for Unity projects built on Android (Oculus Go/Quest, maybe GearVR)
MIT License
225 stars 63 forks source link

Drag & Drop in Oculus Quest 2 #37

Open HerrAugust opened 3 years ago

HerrAugust commented 3 years ago

https://user-images.githubusercontent.com/5053385/126178337-0215c818-2319-48e9-b69e-64ad287bc71c.mp4

Hello everyone,

I can load a webpage onto the Oculus Quest 2 and use it with the controller (without moving the head). Also, I can use the controller buttons to select the interactable buttons within the webpage.

However, drag & drop does not work and only clicks work (even though not always). Does d&d work to anyone and how to get it working?

I attach a video to show that clicks work while d&d does not via the controller buttons.

Thanks!

IanPhilips commented 3 years ago

Hey, that is indeed a limitation with the way it's currently written. You could edit the plugin to add this functionality in though, checkout line 68. You could probably just modify that signature in the java plugin and the unity C# interface to create two separate functions, one that calls MotionEvent.ACTION_DOWN, and the other for MotionEvent.ACTION_UP depending on how long your drag is.