How to make buttons, ondown - start to change position, onup stop to change position
Same beauvoir as with left/right arrow
Turn left/right buttons
-
-
-
Hi,
the 'typical way' would be setting the '*_moveforce' variales:
https://krpano.com/docu/actions/#hlookat_moveforcee.g.
Code<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:
https://krpano.com/docu/xml/#eventsHere an example:
Keyboard controlBest regards,
Klaus
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!