Add touch events to VrPanoramaView class of google cardboard SDK for android
Asked Answered
R

2

14

I am working on a panorama app. I am using VrPanoramaView class of google cardboard SDK to view panorama in my app. VrPanoramaView class provides gyro navigation to view panorama. Is it possible to attach touch events along with gyro navigation to the panorama.

Thanks!

Realgar answered 27/4, 2016 at 11:47 Comment(0)
G
0

Now Google Cardboard SDK is deprecated and Google VR SDK is available here.

SDK has VrPanoramaView class for displaying 360 degree panorama images.

You can set touch event on it.

Glume answered 24/7, 2016 at 4:43 Comment(0)
P
0

Google Cardboard SDK is up-to-date (updated 1 month ago, github), but Google VR SDK is deprecated (updated 5 years ago, github).

You can set onTouchListener or onClickListener, then use callbacks in VideoActivity

Pinochle answered 25/4 at 7:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.