将触摸事件添加到适用于android的Google Cardboard SDK的VrPanoramaView类

问题描述 投票:0回答:2

我正在开发一个全景应用程序。我正在使用 Google Cardboard SDK 的 VrPanoramaView 类在我的应用程序中查看全景图。 VrPanoramaView 类提供陀螺仪导航来查看全景图。是否可以将触摸事件与陀螺仪导航一起附加到全景图中。

谢谢!

android touch google-cardboard panoramas
2个回答
0
投票

现在 Google Cardboard SDK 已弃用,Google VR SDK 可用此处

SDK有VrPanoramaView类,用于显示360度全景图像。

可以设置触摸事件。


0
投票

Google Cardboard SDK 是最新的(1 个月前更新,github),但 Google VR SDK 已弃用(5 年前更新,github)。

您可以设置

onTouchListener
onClickListener
,然后在
VideoActivity

中使用回调
© www.soinside.com 2019 - 2024. All rights reserved.