LogicalDevice QML Type | Qt 3D 5.15.18 (original) (raw)

QML frontend for the Qt3DInput::QLogicalDevice C++ class. More...

Import Statement: import Qt3D.Input 2.15
Since: Qt 5.6
Instantiates: QLogicalDevice

Properties

Detailed Description

Allows the user to define a set of actions that they wish to use within an application.

LogicalDevice { id: keyboardLogicalDevice

actions: [
    [Action](qml-qt3d-input-action.html) {
        name: "fire"
        inputs: [
            [ActionInput](qml-qt3d-input-actioninput.html) {
                sourceDevice: keyboardSourceDevice
                keys: [Qt.Key_Space]
            },
            [InputChord](qml-qt3d-input-inputchord.html) {
                tolerance: 10
                inputs: [
                    [ActionInput](qml-qt3d-input-actioninput.html) {
                        sourceDevice: keyboardSourceDevice
                        keys: [Qt.Key_A]
                    },
                    [ActionInput](qml-qt3d-input-actioninput.html) {
                        sourceDevice: keyboardSourceDevice
                        keys: [Qt.Key_S]
                    }
                ]
            }
        ]
    },
    [Action](qml-qt3d-input-action.html) {
        name: "reload"
        inputs: [
            [ActionInput](qml-qt3d-input-actioninput.html) {
                sourceDevice: keyboardSourceDevice
                keys: [Qt.Key_Alt]
            }
        ]
    },
    [Action](qml-qt3d-input-action.html) {
        name: "combo"
        inputs: [
            [InputSequence](qml-qt3d-input-inputsequence.html) {
                interval: 1000
                timeout: 10000
                inputs: [
                    [ActionInput](qml-qt3d-input-actioninput.html) {
                        sourceDevice: keyboardSourceDevice
                        keys: [Qt.Key_G]
                    },
                    [ActionInput](qml-qt3d-input-actioninput.html) {
                        sourceDevice: keyboardSourceDevice
                        keys: [Qt.Key_D]
                    },
                    [ActionInput](qml-qt3d-input-actioninput.html) {
                        sourceDevice: keyboardSourceDevice
                        keys: [Qt.Key_J]
                    }
                ]
            }
        ]
    }
]

}

Property Documentation

The actions used by this Logical Device

The axis used by this Logical Device

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.