Disable gyro

Q&A about the latest versions
Post Reply
kris
Posts: 105
Joined: Wed Feb 15, 2012 9:37 am

Disable gyro

Post by kris » Sat Jun 25, 2016 6:25 pm

How to disable gyro when using a cardboard.ggt template.

User avatar
Hopki
Gnome
Posts: 9449
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Disable gyro

Post by Hopki » Sat Jun 25, 2016 11:55 pm

Hi,
Have a button with a mouse click, or have a container with a player init action:

mouse click => goto url => url: javascript:gyro.disable(); => target: (lear blank)
or
player init => goto url => url: javascript:gyro.disable(); => target: (lear blank)

Regards,
Hopki

kris
Posts: 105
Joined: Wed Feb 15, 2012 9:37 am

Re: Disable gyro

Post by kris » Mon Jun 27, 2016 11:43 am

I forgot to mention; its disable gyro on start when using cardboard.ggt template.

ggibbon
Posts: 64
Joined: Fri Aug 01, 2014 1:02 pm

Re: Disable gyro

Post by ggibbon » Mon Jul 25, 2016 1:21 pm

Hi Hopki

Is it also disable on start with normal HTML output?

Thanks

User avatar
Hopki
Gnome
Posts: 9449
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Disable gyro

Post by Hopki » Tue Jul 26, 2016 5:12 pm

Hi,
The Gyro needs to be enabled in the normal template so select Include gyro control.
Then you can use the disable it on start up by selecting disable on start up.
Then you would use the actions in a button to toggle the gyro.

mouse click => goto url => url: javascript:gyro.toggle(); => target: (leave blank)

Regards,
Hopki

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests