Top Description Fields Constructors Methods
org.lwjgl.openxr

public Class HTCXViveTrackerInteraction

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

The XR_HTCX_vive_tracker_interaction extension.

This extension defines a new interaction profile for HTC VIVE Tracker. HTC VIVE Tracker is a generic tracked device which can be attached to anything to make them trackable. For example, it can be attached to user’s hands or feet to track the motion of human body. It can also be attached to any other devices the user wants to track and interact with.

In order to enable the functionality of this extension, you must pass the name of the extension into CreateInstance via the XrInstanceCreateInfo enabledExtensionNames parameter as indicated in the extensions section.

This extension allows:

The paths of a VIVE tracker contains two paths below:

As with other controllers, if a VIVE tracker is connected and bound to a top-level user path, or disconnected while bound to top-level user path, the runtime must send event TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED, and the application may call GetCurrentInteractionProfile to check if the tracker is active or not.

The device that a tracker is attached to probably has a different motion model than what the tracker assumes. The motion tracking might not be as expected in this case.

Field Summary

Modifier and TypeField and Description
public static final String
public static final int
XR_HTCX_vive_tracker_interaction_SPEC_VERSION

The extension specification version.

public static final int
public static final int
XR_TYPE_VIVE_TRACKER_PATHS_HTCX

Extends XrStructureType.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
nxrEnumerateViveTrackerPathsHTCX(XrInstance instance, int
the capacity of the viveTrackerPaths, or 0 to retrieve the required capacity.
pathsCapacityInput
,
long pathsCountOutput, long viveTrackerPaths)

Unsafe version of: EnumerateViveTrackerPathsHTCX

public static int
xrEnumerateViveTrackerPathsHTCX(XrInstance
an instance previously created.
instance
,
IntBuffer
a pointer to the count of XrViveTrackerPathsHTCX viveTrackerPaths written, or a pointer to the required capacity in the case that pathsCapacityInput is insufficient.
pathsCountOutput
,
XrViveTrackerPathsHTCX.Buffer
a pointer to an array of XrViveTrackerPathsHTCX VIVE tracker paths, but can be NULL if pathsCapacityInput is 0.
viveTrackerPaths
)

Enumerates all connected VIVE trackers.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

XR_HTCX_VIVE_TRACKER_INTERACTION_EXTENSION_NAMEback to summary
public static final String XR_HTCX_VIVE_TRACKER_INTERACTION_EXTENSION_NAME

The extension name.

XR_HTCX_vive_tracker_interaction_SPEC_VERSIONback to summary
public static final int XR_HTCX_vive_tracker_interaction_SPEC_VERSION

The extension specification version.

XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCXback to summary
public static final int XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX

Extends XrStructureType.

Enum values:
XR_TYPE_VIVE_TRACKER_PATHS_HTCXback to summary
public static final int XR_TYPE_VIVE_TRACKER_PATHS_HTCX

Extends XrStructureType.

Enum values:

Constructor Detail

HTCXViveTrackerInteractionback to summary
protected HTCXViveTrackerInteraction()

Method Detail

nxrEnumerateViveTrackerPathsHTCXback to summary
public static int nxrEnumerateViveTrackerPathsHTCX(XrInstance instance, int pathsCapacityInput, long pathsCountOutput, long viveTrackerPaths)

Unsafe version of: EnumerateViveTrackerPathsHTCX

Parameters
pathsCapacityInput:int

the capacity of the viveTrackerPaths, or 0 to retrieve the required capacity.

xrEnumerateViveTrackerPathsHTCXback to summary
public static int xrEnumerateViveTrackerPathsHTCX(XrInstance instance, IntBuffer pathsCountOutput, XrViveTrackerPathsHTCX.Buffer viveTrackerPaths)

Enumerates all connected VIVE trackers.

C Specification

The EnumerateViveTrackerPathsHTCX function is defined as:


XrResult xrEnumerateViveTrackerPathsHTCX(
    XrInstance                                  instance,
    uint32_t                                    pathsCapacityInput,
    uint32_t*                                   pathsCountOutput,
    XrViveTrackerPathsHTCX*                     viveTrackerPaths);
Description

EnumerateViveTrackerPathsHTCX enumerates all connected VIVE trackers to retrieve their paths under current instance.

Valid Usage (Implicit)
Return Codes
On success, this command returns
On failure, this command returns
See Also

XrViveTrackerPathsHTCX

Parameters
instance:XrInstance

an instance previously created.

pathsCountOutput:IntBuffer

a pointer to the count of XrViveTrackerPathsHTCX viveTrackerPaths written, or a pointer to the required capacity in the case that pathsCapacityInput is insufficient.

viveTrackerPaths:XrViveTrackerPathsHTCX.Buffer

a pointer to an array of XrViveTrackerPathsHTCX VIVE tracker paths, but can be NULL if pathsCapacityInput is 0.

Annotations
@NativeType:XrResult