UHeadMountedDisplayFunctionLibrary::SetXRTimedInputActionDelegate

Hook up a delegate to get an OpenXR action event with action time.

Windows
MacOS
Linux

References

Module

HeadMountedDisplay

Header

/Engine/Source/Runtime/HeadMountedDisplay/Public/HeadMountedDisplayFunctionLibrary.h

Include

#include "HeadMountedDisplayFunctionLibrary.h"

Source

/Engine/Source/Runtime/HeadMountedDisplay/Private/HeadMountedDisplayFunctionLibrary.cpp

Syntax

static void SetXRTimedInputActionDelegate
(
    const FName & ActionName,
    const FXRTimedInputActionDelegate & InDelegate
)

Remarks

Hook up a delegate to get an OpenXR action event with action time. For a boolean input the the 'value' parameter of the delegate will be 1.0 for a press and 0.0 for a release. For an analog input the value's range is action and platform specific. Use in combination with GetControllerTransformForTime for potentially improved temporal transform precision and velocity data. "Left Grip" is an example of a valid ActionName.

this is likely to be replaced by native support for event times in the core input system at some time in the future.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss