XrInputAction QML Type

Maps input actions to corresponding actions. More...

Import Statement: import QtQuick3D.Xr
Since: Qt 6.8
Inherits:

Item

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:

ConstantDescription
XrActionmappter.CustomActionRepresents a custom action with a value of -1.
XrActionmappter.Button1PressedIndicates that Button 1 is pressed.
XrActionMapper.Button1TouchedIndicates that Button 1 is touched.
XrActionMapper.Button2PressedIndicates that Button 2 is pressed.
XrActionMapper.Button2TouchedIndicates that Button 2 is touched.
XrActionMapper.ButtonMenuPressedIndicates that the menu button is pressed.
XrActionMapper.ButtonMenuTouchedIndicates that the menu button is touched.
XrActionMapper.ButtonSystemPressedIndicates that the system button is pressed.
XrActionMapper.ButtonSystemTouchedIndicates that the system button is touched.
XrActionMapper.SqueezeValueRepresents the squeeze value in a controller.
XrActionMapper.SqueezeForceRepresents the force of a squeeze action.
XrActionMapper.SqueezePressedIndicates that the squeeze action is pressed.
XrActionMapper.TriggerValueRepresents the value of the trigger (for example, how much it's pressed).
XrActionMapper.TriggerPressedIndicates that the trigger is pressed.
XrActionMapper.TriggerTouchedIndicates that the trigger is touched.
XrActionMapper.ThumbstickXRepresents the X-axis value of the thumbstick.
XrActionMapper.ThumbstickYRepresents the Y-axis value of the thumbstick.
XrActionMapper.ThumbstickPressedIndicates that the thumbstick is pressed.
XrActionMapper.ThumbstickTouchedIndicates that the thumbstick is touched.
XrActionMapper.ThumbrestTouchedIndicates that the thumbrest is touched.
XrActionMapper.TrackpadXRepresents the X-axis value of the trackpad.
XrActionMapper.TrackpadYRepresents the Y-axis value of the trackpad.
XrActionMapper.TrackpadForceRepresents the force applied on the trackpad.
XrActionMapper.TrackpadTouchedIndicates that the trackpad is touched.
XrActionMapper.TrackpadPressedIndicates that the trackpad is pressed.
XrActionMapper.IndexFingerPinchIndicates that the index finger is pinched.
XrActionMapper.MiddleFingerPinchIndicates that the middle finger is pinched.
XrActionMapper.RingFingerPinchIndicates that the ring finger is pinched.
XrActionMapper.LittleFingerPinchIndicates that the little finger is pinched.
XrActionMapper.HandTrackingMenuPressIndicates a menu press in hand tracking.
XrActionMapper.NumHandActionsRepresents the total number of hand actions.
XrActionMapper.NumActionsNumber 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.