Class MNDXForceFeedbackCurl
This extension provides APIs for force feedback devices capable of restricting physical movement in a single direction along a single dimension.
The intended use for this extension is to provide simple force feedback capabilities to restrict finger movement for VR Gloves.
The application must also enable the XR_EXT_hand_tracking extension in order to use this extension.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intXrForceFeedbackCurlLocationMNDX - Describes which location to apply force feedbackstatic final intXrForceFeedbackCurlLocationMNDX - Describes which location to apply force feedbackstatic final intXrForceFeedbackCurlLocationMNDX - Describes which location to apply force feedbackstatic final intXrForceFeedbackCurlLocationMNDX - Describes which location to apply force feedbackstatic final intXrForceFeedbackCurlLocationMNDX - Describes which location to apply force feedbackstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsXrStructureType.static final intExtendsXrStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrApplyForceFeedbackCurlMNDX(XrHandTrackerEXT handTracker, long locations) Unsafe version of:ApplyForceFeedbackCurlMNDXstatic intxrApplyForceFeedbackCurlMNDX(XrHandTrackerEXT handTracker, XrForceFeedbackCurlApplyLocationsMNDX locations) Applies force feedback to a set of locations.
-
Field Details
-
XR_MNDX_force_feedback_curl_SPEC_VERSION
public static final int XR_MNDX_force_feedback_curl_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_MNDX_FORCE_FEEDBACK_CURL_EXTENSION_NAME
The extension name.- See Also:
-
XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX
public static final int XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDXExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX
public static final int XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDXExtendsXrStructureType.Enum values:
- See Also:
-
XR_FORCE_FEEDBACK_CURL_LOCATION_THUMB_CURL_MNDX
public static final int XR_FORCE_FEEDBACK_CURL_LOCATION_THUMB_CURL_MNDXXrForceFeedbackCurlLocationMNDX - Describes which location to apply force feedbackEnumerant Descriptions
FORCE_FEEDBACK_CURL_LOCATION_THUMB_CURL_MNDX— force feedback for thumb curlFORCE_FEEDBACK_CURL_LOCATION_INDEX_CURL_MNDX— force feedback for index finger curlFORCE_FEEDBACK_CURL_LOCATION_MIDDLE_CURL_MNDX— force feedback for middle finger curlFORCE_FEEDBACK_CURL_LOCATION_RING_CURL_MNDX— force feedback for ring finger curlFORCE_FEEDBACK_CURL_LOCATION_LITTLE_CURL_MNDX— force feedback for little finger curl
See Also
- See Also:
-
XR_FORCE_FEEDBACK_CURL_LOCATION_INDEX_CURL_MNDX
public static final int XR_FORCE_FEEDBACK_CURL_LOCATION_INDEX_CURL_MNDXXrForceFeedbackCurlLocationMNDX - Describes which location to apply force feedbackEnumerant Descriptions
FORCE_FEEDBACK_CURL_LOCATION_THUMB_CURL_MNDX— force feedback for thumb curlFORCE_FEEDBACK_CURL_LOCATION_INDEX_CURL_MNDX— force feedback for index finger curlFORCE_FEEDBACK_CURL_LOCATION_MIDDLE_CURL_MNDX— force feedback for middle finger curlFORCE_FEEDBACK_CURL_LOCATION_RING_CURL_MNDX— force feedback for ring finger curlFORCE_FEEDBACK_CURL_LOCATION_LITTLE_CURL_MNDX— force feedback for little finger curl
See Also
- See Also:
-
XR_FORCE_FEEDBACK_CURL_LOCATION_MIDDLE_CURL_MNDX
public static final int XR_FORCE_FEEDBACK_CURL_LOCATION_MIDDLE_CURL_MNDXXrForceFeedbackCurlLocationMNDX - Describes which location to apply force feedbackEnumerant Descriptions
FORCE_FEEDBACK_CURL_LOCATION_THUMB_CURL_MNDX— force feedback for thumb curlFORCE_FEEDBACK_CURL_LOCATION_INDEX_CURL_MNDX— force feedback for index finger curlFORCE_FEEDBACK_CURL_LOCATION_MIDDLE_CURL_MNDX— force feedback for middle finger curlFORCE_FEEDBACK_CURL_LOCATION_RING_CURL_MNDX— force feedback for ring finger curlFORCE_FEEDBACK_CURL_LOCATION_LITTLE_CURL_MNDX— force feedback for little finger curl
See Also
- See Also:
-
XR_FORCE_FEEDBACK_CURL_LOCATION_RING_CURL_MNDX
public static final int XR_FORCE_FEEDBACK_CURL_LOCATION_RING_CURL_MNDXXrForceFeedbackCurlLocationMNDX - Describes which location to apply force feedbackEnumerant Descriptions
FORCE_FEEDBACK_CURL_LOCATION_THUMB_CURL_MNDX— force feedback for thumb curlFORCE_FEEDBACK_CURL_LOCATION_INDEX_CURL_MNDX— force feedback for index finger curlFORCE_FEEDBACK_CURL_LOCATION_MIDDLE_CURL_MNDX— force feedback for middle finger curlFORCE_FEEDBACK_CURL_LOCATION_RING_CURL_MNDX— force feedback for ring finger curlFORCE_FEEDBACK_CURL_LOCATION_LITTLE_CURL_MNDX— force feedback for little finger curl
See Also
- See Also:
-
XR_FORCE_FEEDBACK_CURL_LOCATION_LITTLE_CURL_MNDX
public static final int XR_FORCE_FEEDBACK_CURL_LOCATION_LITTLE_CURL_MNDXXrForceFeedbackCurlLocationMNDX - Describes which location to apply force feedbackEnumerant Descriptions
FORCE_FEEDBACK_CURL_LOCATION_THUMB_CURL_MNDX— force feedback for thumb curlFORCE_FEEDBACK_CURL_LOCATION_INDEX_CURL_MNDX— force feedback for index finger curlFORCE_FEEDBACK_CURL_LOCATION_MIDDLE_CURL_MNDX— force feedback for middle finger curlFORCE_FEEDBACK_CURL_LOCATION_RING_CURL_MNDX— force feedback for ring finger curlFORCE_FEEDBACK_CURL_LOCATION_LITTLE_CURL_MNDX— force feedback for little finger curl
See Also
- See Also:
-
-
Method Details
-
nxrApplyForceFeedbackCurlMNDX
Unsafe version of:ApplyForceFeedbackCurlMNDX -
xrApplyForceFeedbackCurlMNDX
public static int xrApplyForceFeedbackCurlMNDX(XrHandTrackerEXT handTracker, XrForceFeedbackCurlApplyLocationsMNDX locations) Applies force feedback to a set of locations.C Specification
The
ApplyForceFeedbackCurlMNDXfunction is defined as:XrResult xrApplyForceFeedbackCurlMNDX( XrHandTrackerEXT handTracker, const XrForceFeedbackCurlApplyLocationsMNDX* locations);Description
The
ApplyForceFeedbackCurlMNDXfunction applies force feedback to the set locations listed inXrForceFeedbackCurlApplyLocationsMNDX.ApplyForceFeedbackCurlMNDXshould be called every time an application wishes to update a set of force feedback locations.Submits a request for force feedback for a set of locations. The runtime should deliver this request to the
handTrackerdevice. If thehandTrackerdevice is not available, the runtime may ignore this request for force feedback.If the session associated with
handTrackeris not focused, the runtime must returnSESSION_NOT_FOCUSED, and not apply force feedback.When an application submits force feedback for a set of locations, the runtime must update the set of locations to that specified by the application. A runtime must set any locations not specified by the application when submitting force feedback to 0.
The runtime may discontinue force feedback if the application that set it loses focus. An application should call the function again after regaining focus if force feedback is still desired.
Valid Usage (Implicit)
- The
XR_MNDX_force_feedback_curlextension must be enabled prior to callingApplyForceFeedbackCurlMNDX handTrackermust be a validXrHandTrackerEXThandlelocationsmust be a pointer to a validXrForceFeedbackCurlApplyLocationsMNDXstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
handTracker- anXrHandTrackerEXThandle previously created withCreateHandTrackerEXT.locations- anXrForceFeedbackCurlApplyLocationsMNDXcontaining a set of locations to apply force feedback to.
- The
-