XrInputAction QML Type
Maps input actions to corresponding actions. More...
Import Statement: | import QtQuick3D.Xr |
Since: | Qt 6.8 |
Inherits: | |
Status: | Technical Preview |
Properties
Detailed Description
Property Documentation
actionId : List<enumeration> |
The value associated with the input action.
Holds a List of InputActions Ids, that can be of the following values:
Constant | Description |
---|---|
XrInputAction.CustomAction | Represents a custom action with a value of -1. |
XrInputAction.Button1Pressed | Indicates that Button 1 is pressed. |
XrInputAction.Button1Touched | Indicates that Button 1 is touched. |
XrInputAction.Button2Pressed | Indicates that Button 2 is pressed. |
XrInputAction.Button2Touched | Indicates that Button 2 is touched. |
XrInputAction.ButtonMenuPressed | Indicates that the menu button is pressed. |
XrInputAction.ButtonMenuTouched | Indicates that the menu button is touched. |
XrInputAction.ButtonSystemPressed | Indicates that the system button is pressed. |
XrInputAction.ButtonSystemTouched | Indicates that the system button is touched. |
XrInputAction.SqueezeValue | Represents the squeeze value in a controller. |
XrInputAction.SqueezeForce | Represents the force of a squeeze action. |
XrInputAction.SqueezePressed | Indicates that the squeeze action is pressed. |
XrInputAction.TriggerValue | Represents the value of the trigger (for example, how much it's pressed). |
XrInputAction.TriggerPressed | Indicates that the trigger is pressed. |
XrInputAction.TriggerTouched | Indicates that the trigger is touched. |
XrInputAction.ThumbstickX | Represents the X-axis value of the thumbstick. |
XrInputAction.ThumbstickY | Represents the Y-axis value of the thumbstick. |
XrInputAction.ThumbstickPressed | Indicates that the thumbstick is pressed. |
XrInputAction.ThumbstickTouched | Indicates that the thumbstick is touched. |
XrInputAction.ThumbrestTouched | Indicates that the thumbrest is touched. |
XrInputAction.TrackpadX | Represents the X-axis value of the trackpad. |
XrInputAction.TrackpadY | Represents the Y-axis value of the trackpad. |
XrInputAction.TrackpadForce | Represents the force applied on the trackpad. |
XrInputAction.TrackpadTouched | Indicates that the trackpad is touched. |
XrInputAction.TrackpadPressed | Indicates that the trackpad is pressed. |
XrInputAction.IndexFingerPinch | Indicates that the index finger is pinched. |
XrInputAction.MiddleFingerPinch | Indicates that the middle finger is pinched. |
XrInputAction.RingFingerPinch | Indicates that the ring finger is pinched. |
XrInputAction.LittleFingerPinch | Indicates that the little finger is pinched. |
XrInputAction.HandTrackingMenuPress | Indicates a menu press in hand tracking. |
XrInputAction.NumHandActions | Represents the total number of hand actions. |
XrInputAction.NumActions | Number of actions. |
pressed : bool |
Indicates whether the input action is currently pressed.
Use this property to check if the input action (for example, a button) is currently pressed.
value : float |
The value associated with the input action.
For analog inputs, such as a thumbstick position, this property holds the value of the input (usually in the range [0, 1]).