Keyboard Shortcuts..  

Share your tips and tricks here or get help with any Panotour 2.0+ problem!
No bug reports (of any kind) in this forum!
no avatar
sanfe
Member
 
Topic author
Posts: 16
Likes: 1 post
Liked in: 0 post
Joined: Wed May 16, 2012 8:04 pm
Info

Keyboard Shortcuts..

by sanfe » Wed Aug 13, 2014 10:45 am

Hi all!
Next friday I have an exhibition with some of my panoramas (22). I use 80 seconds transition between each panorama.
I would like to know if is possible to change manualy via keyboard, because i cant use the mouse. For examle Pageup or Page down for next or previus pano?

Any idea?

regards!

no avatar
benji33
Kolor Team
 
Posts: 5848
Likes: 92 posts
Liked in: 199 posts
Joined: Tue Apr 09, 2013 10:59 am
Location: France
Info

Re: Keyboard Shortcuts..

by benji33 » Wed Aug 13, 2014 1:24 pm

Add a control bar with prev/next buttons or a prev/next control into the VR and add this code :
Code: Select all
<action name="onPageUpDownKey">if(keycode==33,loadPreviousScene();,if(keycode==34,loadNextScene();););</action>
<events name="onPageUpDownKeyEvents" onkeydown="onPageUpDownKey" keep="true"/>
Benjamin

no avatar
sanfe
Member
 
Topic author
Posts: 16
Likes: 1 post
Liked in: 0 post
Joined: Wed May 16, 2012 8:04 pm
Info

Re: Keyboard Shortcuts..

by sanfe » Wed Aug 13, 2014 5:39 pm

benji33 wrote:Add a control bar with prev/next buttons or a prev/next control into the VR and add this code :
Code: Select all
<action name="onPageUpDownKey">if(keycode==33,loadPreviousScene();,if(keycode==34,loadNextScene();););</action>
<events name="onPageUpDownKeyEvents" onkeydown="onPageUpDownKey" keep="true"/>


Works!!!!! :)

Thanks a lot!

no avatar
Vishal Mathur
Member
 
Posts: 19
Likes: 8 posts
Liked in: 1 post
Joined: Tue Jan 05, 2016 3:12 pm
Location: New Delhi
Info

Re: Keyboard Shortcuts..

by Vishal Mathur » Tue Jan 05, 2016 3:20 pm

code works well on all the pano's except on pano 1 where I have a toggle button. Any clue why it doesn't work there?

Following code also has the same performance.Where keyboard arrow up & down keys are used to call next & previous pano's.

<action name="onPageUpDownKey">if(keycode==38,loadPreviousScene();,if(keycode==40,loadNextScene();););</action>
<events name="onPageUpDownKeyEvents" onkeydown="onPageUpDownKey" keep="true"/>

no avatar
sanfe
Member
 
Topic author
Posts: 16
Likes: 1 post
Liked in: 0 post
Joined: Wed May 16, 2012 8:04 pm
Info

Re: Keyboard Shortcuts..

by sanfe » Tue Jan 05, 2016 5:40 pm

Try to click once in the screen...

no avatar
Vishal Mathur
Member
 
Posts: 19
Likes: 8 posts
Liked in: 1 post
Joined: Tue Jan 05, 2016 3:12 pm
Location: New Delhi
Info

Re: Keyboard Shortcuts..

by Vishal Mathur » Fri Jan 15, 2016 11:24 am

Why do we require a click for the code to activate? Is there some issue with the code itself?
I need to configure the keyboard arrow keys to move to next or previous panos & look left & right. And that no click is required earlier to activate the code. Any suggestions.
Best Regards - Vishal


Who is online

Users browsing this forum: No registered users and 2 guests

cron