简体   繁体   English

如何使用Google硬纸板放大

[英]How to zoom in out with the Google cardboard

I'm working in a project with the cardboard from Google. 我正在使用Google的纸板在一个项目中。 I'm asking if there is someone who have the possibility to help with understanding and creating a script for the zoom in and out with the magnet tool on the cardboard. 我在问是否有人可以帮助理解和创建纸板上的磁性工具进行放大和缩小的脚本。 Thanks a lot for your help. 非常感谢你的帮助。

 Used this code 
@Override
public void onCardboardTrigger() {
if (xyz) {
 //Create a function 
zoom();
    ...
} else {

}
// Always give user feedback
  mVibrator.vibrate(50);
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM