You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, December 21st 2012, 10:50am

Turn left/right buttons

How to make buttons, ondown - start to change position, onup stop to change position
Same beauvoir as with left/right arrow

2

Friday, December 21st 2012, 11:22am

i make like this - onclick it's works
but how to make it turn onkeydown?

Source code

1
set(hlookat, get(view.hlookat));		add(hlookat, -10);		tween(view.hlookat,get(hlookat));

3

Saturday, December 29th 2012, 12:57pm

Hi,

the 'typical way' would be setting the '*_moveforce' variales:
http://krpano.com/docu/actions/#hlookat_moveforce

e.g.

Source code

1
2
<layer name="skin_btn_up" ... ondown="set(vlookat_moveforce,-1);" onup="set(vlookat_moveforce,0);" />
<layer name="skin_btn_dn" ... ondown="set(vlookat_moveforce,+1);" onup="set(vlookat_moveforce,0);" />


The keyboard controls should already work by default, but you can also use the onkeydown/onkeyup events to do that manually:
http://krpano.com/docu/xml/#events

Here an example:
Keyboard control

Best regards,
Klaus