Control node position and orientation with keys and mouse. 更多...
import 语句: | import QtQuick3D.Helpers 1.15 |
继承: |
This helper allows the user to control a node using wasd or arrow keys and mouse. Usually the controlled node is camera.
acceptedButtons : enumeration |
Specify the buttons accepted by the controller.
另请参阅 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.