diff options
author | Robert Brock <robert.brock@kdab.com> | 2016-02-25 13:56:56 +0000 |
---|---|---|
committer | Robert Brock <robert.brock@kdab.com> | 2016-02-29 13:44:47 +0000 |
commit | 491a4d426299e6aa32f05188ce6a1b75203dab02 (patch) | |
tree | 3fc768568e5786c2ec10f1e92408a8138b3fa631 /examples/qt3d/simple-qml | |
parent | 2a74364d45d711be9ed6194c6877dbd1ad336ba8 (diff) |
QActionInput and QAxisInput keys to buttons
As per API review
renamed keys to buttons as it is more descriptive
Change-Id: If0907b382a863d64bd8d86e2796613767a1fd12b
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/qt3d/simple-qml')
-rw-r--r-- | examples/qt3d/simple-qml/CameraController.qml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/qt3d/simple-qml/CameraController.qml b/examples/qt3d/simple-qml/CameraController.qml index 086c5ed7e..c00dd5ce2 100644 --- a/examples/qt3d/simple-qml/CameraController.qml +++ b/examples/qt3d/simple-qml/CameraController.qml @@ -93,7 +93,7 @@ Entity { inputs: [ ActionInput { sourceDevice: mouseSourceDevice - keys: [MouseController.Left] + buttons: [MouseController.Left] } ] }, @@ -102,7 +102,7 @@ Entity { inputs: [ ActionInput { sourceDevice: mouseSourceDevice - keys: [MouseController.Right] + buttons: [MouseController.Right] } ] }, @@ -111,7 +111,7 @@ Entity { inputs: [ ActionInput { sourceDevice: keyboardSourceDevice - keys: [Qt.Key_Shift] + buttons: [Qt.Key_Shift] } ] } @@ -144,12 +144,12 @@ Entity { inputs: [ AxisInput { sourceDevice: keyboardSourceDevice - keys: [Qt.Key_Left] + buttons: [Qt.Key_Left] scale: -1.0 }, AxisInput { sourceDevice: keyboardSourceDevice - keys: [Qt.Key_Right] + buttons: [Qt.Key_Right] scale: 1.0 } ] @@ -159,12 +159,12 @@ Entity { inputs: [ AxisInput { sourceDevice: keyboardSourceDevice - keys: [Qt.Key_Up] + buttons: [Qt.Key_Up] scale: 1.0 }, AxisInput { sourceDevice: keyboardSourceDevice - keys: [Qt.Key_Down] + buttons: [Qt.Key_Down] scale: -1.0 } ] @@ -174,12 +174,12 @@ Entity { inputs: [ AxisInput { sourceDevice: keyboardSourceDevice - keys: [Qt.Key_PageUp] + buttons: [Qt.Key_PageUp] scale: 1.0 }, AxisInput { sourceDevice: keyboardSourceDevice - keys: [Qt.Key_PageDown] + buttons: [Qt.Key_PageDown] scale: -1.0 } ] |