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

Signals

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.GamepadButtonMenuPressedIndicates that a gamepad menu button is pressed.
XrActionMapper.GamepadButtonViewPressedIndicates that a gamepad view button is pressed.
XrActionMapper.GamepadButtonAPressedIndicates that the gamepad A button is pressed.
XrActionMapper.GamepadButtonBPressedIndicates that the gamepad B button is pressed.
XrActionMapper.GamepadButtonXPressedIndicates that the gamepad X button is pressed.
XrActionMapper.GamepadButtonYPressedIndicates that the gamepad Y button is pressed.
XrActionMapper.GamepadButtonDownPressedIndicates that the gamepad down button is pressed.
XrActionMapper.GamepadButtonRightPressedIndicates that the gamepad right button is pressed.
XrActionMapper.GamepadButtonUpPressedIndicates that the gamepad up button is pressed.
XrActionMapper.GamepadButtonLeftPressedIndicates that the gamepad left button is pressed.
XrActionMapper.GamepadShoulderLeftPressedIndicates that the left shoulder button on the gamepad is pressed.
XrActionMapper.GamepadShoulderRightPressedIndicates that the right shoulder button on the gamepad is pressed.
XrActionMapper.GamepadThumbstickLeftPressedIndicates that the left thumbstick on the gamepad is pressed.
XrActionMapper.GamepadThumbstickRightPressedIndicates that the right thumbstick on the gamepad is pressed.
XrActionMapper.GamepadTriggerLeftRepresents the value of the left trigger on the gamepad.
XrActionMapper.GamepadTriggerRightRepresents the value of the right trigger on the gamepad.
XrActionMapper.GamepadThumbstickLeftXRepresents the X-axis value of the left thumbstick on the gamepad.
XrActionMapper.GamepadThumbstickLeftYRepresents the Y-axis value of the left thumbstick on the gamepad.
XrActionMapper.GamepadThumbstickRightXRepresents the X-axis value of the right thumbstick on the gamepad.
XrActionMapper.GamepadThumbstickRightYRepresents the Y-axis value of the right thumbstick on the gamepad.
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]).


Signal Documentation

actionIdChanged()

Emitted when the ID of the input action changes.

Note: The corresponding handler is onActionIdChanged.


actionNameChanged()

Emitted when the name of the input action changes.

Note: The corresponding handler is onActionNameChanged.


pressedChanged()

Emitted when the pressed property changes.

Note: The corresponding handler is onPressedChanged.


triggered()

Emitted when the input action is triggered.

Note: The corresponding handler is onTriggered.


valueChanged()

Emitted when the value property changes.

Note: The corresponding handler is onValueChanged.