<!--插入重力插件-->
<plugin name="gyroscope"
url="%SWFPATH%/plugins/gyro.js"
keep="true"
devices="tablet|mobile"
onavailable="delayedcall(1, checkGyroAvailability(););"
enabled="false"
/>
<!--重力状态控制-->
<action name="changeGyroscopeState">
ifnot (plugin[gyroscope].available === undefined,
if (plugin[gyroscope].available,
switch(plugin[gyroscope].enabled);
if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
);
);
</action>
<!--检测设备是否支持重力感应-->
<action name="checkGyroAvailability">
ifnot (plugin[gyroscope].available === undefined,
if (plugin[gyroscope].available,
set(tour_gyroscopedevices, true);
events.dispatch(ongyroscopeavailable);
if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
,
set(tour_gyroscopedevices, false);
set(plugin[gyr
krpano 教程 - 重力效果插件的使用
最新推荐文章于 2024-11-01 17:12:09 发布
这是一篇关于krpano重力效果插件的教程,介绍了如何在360全景漫游中应用重力感应,提供免费的全景教程资料下载链接。

最低0.47元/天 解锁文章
2906

被折叠的 条评论
为什么被折叠?



