Keys to control SPi-V
Submitted by humbleweed on April 24, 2008 - 15:14.
Hello Community,
I'm trying to create a POI (Mac OS X, Opera in kioskmode) with a panorama.
The interface to control the pano should be only 4 keys (i.e. up, down, left, right - or other keys).
I have the problem, that on startup there seems no way to activate keys for pan and tilt (active only after mouse actions; but there will be no pointer device).
Also a JavaScript to set pan and tilt (on key events) doesn't work.
Does anyone have ideas ?
Thanks
humbleweed
fieldOfView | SPi-V dev
Re: Keys to control SPi-V
The lack of control over the Shockwave object is an unfortunate bug that first reared its ugly head when Macromedia added 'support' for the Eolas patch in Internet Explorer. Very little can be done about that from within SPi-V.
Re: Keys to control SPi-V
Thank you, Aldo,
I found the key to speak JavaScript with SPi-V in Opera environment.
The trick is:
>>>
toeval = 'document.PanoViewer.EvalScript(' + "'" + 'setView("","' + pan + '","' + tilt + '","' + fov + '")' + "')";
eval(toeval);
<<<
pan, tilt, fov are varaibles, former set in JavaScript.
This is a solution for playing in Opera (!).
A nice connector whould be a getView() method or something similar. But not a must for my project.
Yours, humbleweed