WasdController QML Type
Control node position and orientation with keys and mouse. More...
Import Statement: | import QtQuick3D.Helpers 1.15 |
Inherits: |
Properties
- acceptedButtons : enumeration
- backSpeed : real
- controlledObject : QtQuick3D::Node
- downSpeed : real
- forwardSpeed : real
- inputsNeedProcessing : bool
- keysEnabled : bool
- leftSpeed : real
- mouseEnabled : bool
- rightSpeed : real
- shiftSpeed : real
- speed : real
- upSpeed : real
- xInvert : bool
- xSpeed : real
- yInvert : bool
- ySpeed : real
Detailed Description
This helper allows the user to control a node using wasd or arrow keys and mouse. Usually the controlled node is camera.
Property Documentation
acceptedButtons : enumeration |
Specify the buttons accepted by the controller.
See also DragHandler and MultiPointHandler.
backSpeed : real |
Specifies the speed of the controls when back-key is pressed.
controlledObject : QtQuick3D::Node |
Specifies the node to control.
downSpeed : real |
Specifies the speed of the controls when down-key is pressed.
forwardSpeed : real |
Specifies the speed of the controls when forward-key is pressed.
[read-only] inputsNeedProcessing : bool |
This property is true when there are inputs needing processing.
keysEnabled : bool |
Enable key controls.
leftSpeed : real |
Specifies the speed of the controls when left-key is pressed.
mouseEnabled : bool |
Enable mouse controls.
rightSpeed : real |
Specifies the speed of the controls when right-key is pressed.
shiftSpeed : real |
Specifies the speed of the controls when shift-key is pressed.
speed : real |
Specifies the speed of the controls.
upSpeed : real |
Specifies the speed of the controls when up-key is pressed.
xInvert : bool |
Inverts the x-axis controls.
xSpeed : real |
Specifies the speed of the controls when mouse is moved along x-axis.
yInvert : bool |
Inverts the y-axis controls.
ySpeed : real |
Specifies the speed of the controls when mouse is moved along y-axis.
© 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.