6 property int xv:(knob.x-(width-knob.width)/2)*(200/(width-knob.width))
7 property int yv:(knob.y-(height-knob.height)/2)*(200/(height-knob.height))
8 property bool pressed:false
9 property int touchPointId:-1
10 property bool touchmode:false
11 property url joyBackground:"joybox.png"
17 x:parent.width/2-width/2
18 y:parent.width/2-height/2
22 anchors.centerIn:parent
35 // console.log("TouchArea:ontouchStart " + joyarea.touches.length);
36 var touch = joyarea.touches[0];
37 // console.log("touchStart",touch.id," at ",touch.y,touch.x,stick.x);
44 // console.log("TouchArea:ontouchMove " + joyarea.changedTouches.length);
45 var touch = joyarea.changedTouches[0];
46 // console.log("touchMove",touch.id," at ",touch.y,touch.x);
52 // console.log("TouchArea:ontouchEnd " + joyarea.releasedTouches.length);
53 var touch = joyarea.releasedTouches[0];
54 // console.log("JoyStick:touchEnd",touch.x,touch.y)
55 knob.x=width/2-knob.width/2
56 knob.y=width/2-knob.height/2
67 drag.maximumX:parent.width-knob.width
68 drag.maximumY:parent.height-knob.height
71 knob.x=parent.width/2-knob.width/2;
72 knob.y=parent.height/2-knob.height/2;