diff options
-rw-r--r-- | examples/sensors/cubehouse/Cubehouse.qml | 3 | ||||
-rw-r--r-- | examples/sensors/cubehouse/Room.qml | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/examples/sensors/cubehouse/Cubehouse.qml b/examples/sensors/cubehouse/Cubehouse.qml index 1db7209..f824e96 100644 --- a/examples/sensors/cubehouse/Cubehouse.qml +++ b/examples/sensors/cubehouse/Cubehouse.qml @@ -83,6 +83,7 @@ Item { Accelerometer { id: accel active: true + dataRate: 20 //! [1] //! [2] @@ -102,7 +103,7 @@ Item { //Timer to read out the x and y rotation of the TiltSensor //! [4] Timer { - interval: 150; running: true; repeat: true + interval: 50; running: true; repeat: true onTriggered: { view.rotateY(accel.pitch); diff --git a/examples/sensors/cubehouse/Room.qml b/examples/sensors/cubehouse/Room.qml index fd83998..43af3b1 100644 --- a/examples/sensors/cubehouse/Room.qml +++ b/examples/sensors/cubehouse/Room.qml @@ -71,7 +71,8 @@ Item3D{ target: yRT property: "angle" to: yrot - easing.type:"OutQuad" + easing.type:"Linear" + duration: 50 } onCompleted: yspin = false } @@ -82,7 +83,8 @@ Item3D{ target: xRT property: "angle" to: xrot - easing.type:"OutQuad" + easing.type:"Linear" + duration: 50 } onCompleted: xspin = false } |