Module |
|
Header |
/Engine/Source/Runtime/HeadMountedDisplay/Public/HeadMountedDisplayFunctionLibrary.h |
Include |
#include "HeadMountedDisplayFunctionLibrary.h" |
Source |
/Engine/Source/Runtime/HeadMountedDisplay/Private/HeadMountedDisplayFunctionLibrary.cpp |
static void SetXRTimedInputActionDelegate
(
const FName & ActionName,
const FXRTimedInputActionDelegate & InDelegate
)
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.