Sie sind nicht angemeldet.

1

Samstag, 13. Oktober 2012, 05:34

Combine touchtype control with gyro

Not sure if anyone has tried this, but a client of mine would like to use one button to switch between drag2d, moveto and gyro for the ipad and iphone. Any hints would be great!

Thanks,

Robert

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Samstag, 13. Oktober 2012, 14:49

Just combine the actions

Set gyro enabled true and the move to thing

Tuur *thumbsup*

3

Sonntag, 14. Oktober 2012, 23:54

Hello Tuur,

I've tried this but it doesn't seem to work. I seem to have to press the same button twice on each action to enable the touchtype and then the gyro. Any thoughts?

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
onclickA="action(moveto);set(onclick,onclickB());" 
	onclickB="action(drag2D);set(onclick,onclickC());" 
	onclickC="action(gyro_on);set(onclick,onclickA());" onclick="onclickA();"	
	
		
	<action name="drag2D">
	set(control.touchtype,drag2D)
	</action>
	
	<action name="moveto">
	set(control.touchtype,moveto)
	</action>
	
	<action name="gyro_on">
	set(plugin[skin_gyro].enabled, true);
	</action>

Ähnliche Themen