diff options
author | Robert Brock <robert.brock@kdab.com> | 2016-04-29 08:18:06 +0200 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@kdab.com> | 2016-05-02 10:26:25 +0000 |
commit | f63397953d052dc2a35bcc0ec32eaff0ebd80f05 (patch) | |
tree | 869d1bd567a7a8a6d399a2ecb4e6d9e561c6b557 /examples/qt3d/simple-qml | |
parent | 617e4c768616868a3e306668630efdfca69604d7 (diff) |
Splitting of QAxisInput
Placed buttons and scale into a new class
named QButtonAxisInput
Change-Id: I0e8407dc361d9d6eda38973a8950f77b17119467
Task-number: QTBUG-51474
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/simple-qml')
-rw-r--r-- | examples/qt3d/simple-qml/CameraController.qml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/qt3d/simple-qml/CameraController.qml b/examples/qt3d/simple-qml/CameraController.qml index 5d166f400..c6175fed2 100644 --- a/examples/qt3d/simple-qml/CameraController.qml +++ b/examples/qt3d/simple-qml/CameraController.qml @@ -142,12 +142,12 @@ Entity { Axis { name: "TX" inputs: [ - AxisInput { + ButtonAxisInput { sourceDevice: keyboardSourceDevice buttons: [Qt.Key_Left] scale: -1.0 }, - AxisInput { + ButtonAxisInput { sourceDevice: keyboardSourceDevice buttons: [Qt.Key_Right] scale: 1.0 @@ -157,12 +157,12 @@ Entity { Axis { name: "TZ" inputs: [ - AxisInput { + ButtonAxisInput { sourceDevice: keyboardSourceDevice buttons: [Qt.Key_Up] scale: 1.0 }, - AxisInput { + ButtonAxisInput { sourceDevice: keyboardSourceDevice buttons: [Qt.Key_Down] scale: -1.0 @@ -172,12 +172,12 @@ Entity { Axis { name: "TY" inputs: [ - AxisInput { + ButtonAxisInput { sourceDevice: keyboardSourceDevice buttons: [Qt.Key_PageUp] scale: 1.0 }, - AxisInput { + ButtonAxisInput { sourceDevice: keyboardSourceDevice buttons: [Qt.Key_PageDown] scale: -1.0 |