Since I don't have an Ipad 2 or Iphone4, it's difficult for me to find a solution. A client is complaining that, when he use the gyro, everything goes fine, but when he turns of gyro, uses the pano by hand and then reenables the gyro, oriention is completely lost. Does anyone knows a solution? This is the code...
Thanks for help,
Yvan.
Code
<plugin name="gyro" url="gyro.js" enabled="true" camroll="true" friction="0.5" velastic="0.2" devices="html5" keep="true" onloaded="delayedcall(1,if(available, set(plugin[gyro-button].visible,true);));" /> <plugin name="gyro-button" url="gyro.js" enabled="true" camroll="true" friction="0.5" velastic="0.2" devices="html5" keep="true" visible="false" />
<action name="activateGyro" devices="iphone|tablet|mobile|android"> moveto(0,0); delayedcall(1,set(plugin[gyro-button].enabled, true)); delayedcall(1,set(plugin[gyro].enabled, true)); set(plugin[btn_gyroOn].visible,true); set(plugin[btn_gyroOff].visible,false); </action>
<action name="deActivateGyro" devices="iphone|tablet|mobile|android"> set(plugin[gyro-button].enabled, false); set(plugin[gyro].enabled, false); set(plugin[btn_gyroOn].visible,false); set(plugin[btn_gyroOff].visible,true); </action>
</plugin></plugin>