and you may also want to add something to the firstloadcompleteadedaction to hide the button on devices where it doesn't make sense:
<!--hide gyro button if we're not on an html5 device-->
<!-- this really should be something like "if(plugin[gyro].available==false,", but I can't get it to work-->
Hope that helps. I'll update if I figure out how to get the button to hide properly.
ok, this makes a bit more sense, but I'm still not sure that it would hide the gyro button on devices that are html5, but don't have a gyro, such as the first gen iPad or some android phones. Anyone care to test?
Jeremiah thank you very much for the feedback (I didn't get an alert to a reply to my post so I've only just seen it now) but I will definitely give this a try and see how it works.
I've just tested your link http://test.anra.org/gyrotest and it works perfectly. No gyro buttons shown on PC using Chrome but view on iPhone and Gyro button appears and works! Thank you very much.
I've never edited my xml code before but I'll definitely be trying this. It would be nice if it was the default output from PTP with the iOS output selected or if I could create a custom theme/template that included this. I have a custom HTML template but IIRC you can't create an XML template?
It looks like you can create enough of an xml template for this purpose. They're in the templates folder under "menu". If you wanted to fully integrate the function, you would have to make changes in the "themes" folder as well. I will probably need to set some of this up for myself, and I would be happy to share, but it will most likely be after Christmas before I will have time.
Ok, I'm still not 100% happy with this, but it seems to be working. You do need to make sure you've activated the gyroscope plugin, and the iPhone viewer when generating the tour, or this may do something weird. I have not tested it.
Jeremiah, thanks for the info so far, seems to be the only thread here on the subject. First time creating the gyro function and felt it would be obvious to have a enable/disable function. I downloaded your templates pack, just trying to locate where to add it in. I'm on a mac, tried to 'show contents' to put it in there, but no such folder. Where is the resources folder? Some help would be great thanks.
I wonder, in the end, did you manage to get it up and running well? The sample gyro tour is not there anymore. Thanks.
Thanks Jeremiah for your very swift reply and apologies for my very delayed thanks. Great, just opened PTP up and located it, thanks a bundle. The simplest things, sometimes!
Just had a look on the iPad with one of your examples and came up fine (you must have got a bit wet for some of them!). I'm sure PTP will include this feature soon. Makes sense. Good on you for developing it though. Again, many thanks.