LogicalDevice QML Type
QML-Frontend für die C++-Klasse „ Qt3DInput::QLogicalDevice “. Mehr...
| Import Statement: | import Qt3D.Input 2.12 |
| In C++: | QLogicalDevice |
| Status: | Deprecated |
Dieser Typ ist veraltet. Wir raten dringend davon ab, ihn in neuem Code zu verwenden.
Eigenschaften
Ausführliche Beschreibung
Ermöglicht es dem Benutzer, eine Reihe von Aktionen zu definieren, die er innerhalb einer Anwendung nutzen möchte.
LogicalDevice {
id: keyboardLogicalDevice
actions: [
Action {
name: "fire"
inputs: [
ActionInput {
sourceDevice: keyboardSourceDevice
keys: [Qt.Key_Space]
},
InputChord {
tolerance: 10
inputs: [
ActionInput {
sourceDevice: keyboardSourceDevice
keys: [Qt.Key_A]
},
ActionInput {
sourceDevice: keyboardSourceDevice
keys: [Qt.Key_S]
}
]
}
]
},
Action {
name: "reload"
inputs: [
ActionInput {
sourceDevice: keyboardSourceDevice
keys: [Qt.Key_Alt]
}
]
},
Action {
name: "combo"
inputs: [
InputSequence {
interval: 1000
timeout: 10000
inputs: [
ActionInput {
sourceDevice: keyboardSourceDevice
keys: [Qt.Key_G]
},
ActionInput {
sourceDevice: keyboardSourceDevice
keys: [Qt.Key_D]
},
ActionInput {
sourceDevice: keyboardSourceDevice
keys: [Qt.Key_J]
}
]
}
]
}
]
}Dokumentation zu den Eigenschaften
actions : list<Action>
Die von diesem logischen Gerät verwendeten Aktionen
axis : list<Axis>
Die von diesem logischen Gerät verwendete Achse
© 2026 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.