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 |
---|---|
XrActionmappter.CustomAction | Represents a custom action with a value of -1. |
XrActionmappter.Button1Pressed | Indicates that Button 1 is pressed. |
XrActionMapper.Button1Touched | Indicates that Button 1 is touched. |
XrActionMapper.Button2Pressed | Indicates that Button 2 is pressed. |
XrActionMapper.Button2Touched | Indicates that Button 2 is touched. |
XrActionMapper.ButtonMenuPressed | Indicates that the menu button is pressed. |
XrActionMapper.ButtonMenuTouched | Indicates that the menu button is touched. |
XrActionMapper.ButtonSystemPressed | Indicates that the system button is pressed. |
XrActionMapper.ButtonSystemTouched | Indicates that the system button is touched. |
XrActionMapper.SqueezeValue | Represents the squeeze value in a controller. |
XrActionMapper.SqueezeForce | Represents the force of a squeeze action. |
XrActionMapper.SqueezePressed | Indicates that the squeeze action is pressed. |
XrActionMapper.TriggerValue | Represents the value of the trigger (for example, how much it's pressed). |
XrActionMapper.TriggerPressed | Indicates that the trigger is pressed. |
XrActionMapper.TriggerTouched | Indicates that the trigger is touched. |
XrActionMapper.ThumbstickX | Represents the X-axis value of the thumbstick. |
XrActionMapper.ThumbstickY | Represents the Y-axis value of the thumbstick. |
XrActionMapper.ThumbstickPressed | Indicates that the thumbstick is pressed. |
XrActionMapper.ThumbstickTouched | Indicates that the thumbstick is touched. |
XrActionMapper.ThumbrestTouched | Indicates that the thumbrest is touched. |
XrActionMapper.TrackpadX | Represents the X-axis value of the trackpad. |
XrActionMapper.TrackpadY | Represents the Y-axis value of the trackpad. |
XrActionMapper.TrackpadForce | Represents the force applied on the trackpad. |
XrActionMapper.TrackpadTouched | Indicates that the trackpad is touched. |
XrActionMapper.TrackpadPressed | Indicates that the trackpad is pressed. |
XrActionMapper.IndexFingerPinch | Indicates that the index finger is pinched. |
XrActionMapper.MiddleFingerPinch | Indicates that the middle finger is pinched. |
XrActionMapper.RingFingerPinch | Indicates that the ring finger is pinched. |
XrActionMapper.LittleFingerPinch | Indicates that the little finger is pinched. |
XrActionMapper.HandTrackingMenuPress | Indicates a menu press in hand tracking. |
XrActionMapper.NumHandActions | Represents the total number of hand actions. |
XrActionMapper.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]).
© 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.