Package org.lwjgl.openxr
Class MLUserCalibration
java.lang.Object
org.lwjgl.openxr.MLUserCalibration
The XR_ML_user_calibration extension.
This extension can be used to determine how well the device is calibrated for the current user of the device. The extension provides two events for this purpose:
- Headset Fit: Provides the quality of the fit of the headset on the user.
- Eye Calibration: Provides the quality of the user’s eye calibration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intXrEyeCalibrationStatusML - Headset fit statusstatic final intXrEyeCalibrationStatusML - Headset fit statusstatic final intXrEyeCalibrationStatusML - Headset fit statusstatic final intXrEyeCalibrationStatusML - Headset fit statusstatic final intXrHeadsetFitStatusML - Headset fit statusstatic final intXrHeadsetFitStatusML - Headset fit statusstatic final intXrHeadsetFitStatusML - Headset fit statusstatic final intXrHeadsetFitStatusML - Headset fit statusstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrEnableUserCalibrationEventsML(org.lwjgl.openxr.XrInstance instance, long enableInfo) Unsafe version of:EnableUserCalibrationEventsMLstatic intxrEnableUserCalibrationEventsML(org.lwjgl.openxr.XrInstance instance, XrUserCalibrationEnableEventsInfoML enableInfo) Enable/disable user calibration events.
-
Field Details
-
XR_ML_user_calibration_SPEC_VERSION
public static final int XR_ML_user_calibration_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_ML_USER_CALIBRATION_EXTENSION_NAME
The extension name.- See Also:
-
XR_TYPE_EVENT_DATA_HEADSET_FIT_CHANGED_ML
public static final int XR_TYPE_EVENT_DATA_HEADSET_FIT_CHANGED_MLExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_EVENT_DATA_EYE_CALIBRATION_CHANGED_ML
public static final int XR_TYPE_EVENT_DATA_EYE_CALIBRATION_CHANGED_MLExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_USER_CALIBRATION_ENABLE_EVENTS_INFO_ML
public static final int XR_TYPE_USER_CALIBRATION_ENABLE_EVENTS_INFO_MLExtendsXrStructureType.Enum values:
- See Also:
-
XR_HEADSET_FIT_STATUS_UNKNOWN_ML
public static final int XR_HEADSET_FIT_STATUS_UNKNOWN_MLXrHeadsetFitStatusML - Headset fit statusDescription
Enum Description HEADSET_FIT_STATUS_UNKNOWN_MLHeadset fit status not available for unknown reason. HEADSET_FIT_STATUS_NOT_WORN_MLHeadset not worn. HEADSET_FIT_STATUS_GOOD_FIT_MLGood fit. HEADSET_FIT_STATUS_BAD_FIT_MLBad fit. See Also
- See Also:
-
XR_HEADSET_FIT_STATUS_NOT_WORN_ML
public static final int XR_HEADSET_FIT_STATUS_NOT_WORN_MLXrHeadsetFitStatusML - Headset fit statusDescription
Enum Description HEADSET_FIT_STATUS_UNKNOWN_MLHeadset fit status not available for unknown reason. HEADSET_FIT_STATUS_NOT_WORN_MLHeadset not worn. HEADSET_FIT_STATUS_GOOD_FIT_MLGood fit. HEADSET_FIT_STATUS_BAD_FIT_MLBad fit. See Also
- See Also:
-
XR_HEADSET_FIT_STATUS_GOOD_FIT_ML
public static final int XR_HEADSET_FIT_STATUS_GOOD_FIT_MLXrHeadsetFitStatusML - Headset fit statusDescription
Enum Description HEADSET_FIT_STATUS_UNKNOWN_MLHeadset fit status not available for unknown reason. HEADSET_FIT_STATUS_NOT_WORN_MLHeadset not worn. HEADSET_FIT_STATUS_GOOD_FIT_MLGood fit. HEADSET_FIT_STATUS_BAD_FIT_MLBad fit. See Also
- See Also:
-
XR_HEADSET_FIT_STATUS_BAD_FIT_ML
public static final int XR_HEADSET_FIT_STATUS_BAD_FIT_MLXrHeadsetFitStatusML - Headset fit statusDescription
Enum Description HEADSET_FIT_STATUS_UNKNOWN_MLHeadset fit status not available for unknown reason. HEADSET_FIT_STATUS_NOT_WORN_MLHeadset not worn. HEADSET_FIT_STATUS_GOOD_FIT_MLGood fit. HEADSET_FIT_STATUS_BAD_FIT_MLBad fit. See Also
- See Also:
-
XR_EYE_CALIBRATION_STATUS_UNKNOWN_ML
public static final int XR_EYE_CALIBRATION_STATUS_UNKNOWN_MLXrEyeCalibrationStatusML - Headset fit statusDescription
Enum Description EYE_CALIBRATION_STATUS_UNKNOWN_MLEye calibration status not available for unknown reason. EYE_CALIBRATION_STATUS_NONE_MLUser has not performed the eye calibration step. Use system provided app to perform eye calibration. EYE_CALIBRATION_STATUS_COARSE_MLEye calibration is of lower accuracy. EYE_CALIBRATION_STATUS_FINE_MLEye calibration is of higher accuracy. See Also
- See Also:
-
XR_EYE_CALIBRATION_STATUS_NONE_ML
public static final int XR_EYE_CALIBRATION_STATUS_NONE_MLXrEyeCalibrationStatusML - Headset fit statusDescription
Enum Description EYE_CALIBRATION_STATUS_UNKNOWN_MLEye calibration status not available for unknown reason. EYE_CALIBRATION_STATUS_NONE_MLUser has not performed the eye calibration step. Use system provided app to perform eye calibration. EYE_CALIBRATION_STATUS_COARSE_MLEye calibration is of lower accuracy. EYE_CALIBRATION_STATUS_FINE_MLEye calibration is of higher accuracy. See Also
- See Also:
-
XR_EYE_CALIBRATION_STATUS_COARSE_ML
public static final int XR_EYE_CALIBRATION_STATUS_COARSE_MLXrEyeCalibrationStatusML - Headset fit statusDescription
Enum Description EYE_CALIBRATION_STATUS_UNKNOWN_MLEye calibration status not available for unknown reason. EYE_CALIBRATION_STATUS_NONE_MLUser has not performed the eye calibration step. Use system provided app to perform eye calibration. EYE_CALIBRATION_STATUS_COARSE_MLEye calibration is of lower accuracy. EYE_CALIBRATION_STATUS_FINE_MLEye calibration is of higher accuracy. See Also
- See Also:
-
XR_EYE_CALIBRATION_STATUS_FINE_ML
public static final int XR_EYE_CALIBRATION_STATUS_FINE_MLXrEyeCalibrationStatusML - Headset fit statusDescription
Enum Description EYE_CALIBRATION_STATUS_UNKNOWN_MLEye calibration status not available for unknown reason. EYE_CALIBRATION_STATUS_NONE_MLUser has not performed the eye calibration step. Use system provided app to perform eye calibration. EYE_CALIBRATION_STATUS_COARSE_MLEye calibration is of lower accuracy. EYE_CALIBRATION_STATUS_FINE_MLEye calibration is of higher accuracy. See Also
- See Also:
-
-
Method Details
-
nxrEnableUserCalibrationEventsML
public static int nxrEnableUserCalibrationEventsML(org.lwjgl.openxr.XrInstance instance, long enableInfo) Unsafe version of:EnableUserCalibrationEventsML -
xrEnableUserCalibrationEventsML
public static int xrEnableUserCalibrationEventsML(org.lwjgl.openxr.XrInstance instance, XrUserCalibrationEnableEventsInfoML enableInfo) Enable/disable user calibration events.C Specification
The
EnableUserCalibrationEventsMLfunction is defined as:XrResult xrEnableUserCalibrationEventsML( XrInstance instance, const XrUserCalibrationEnableEventsInfoML* enableInfo);Valid Usage (Implicit)
- The
XR_ML_user_calibrationextension must be enabled prior to callingEnableUserCalibrationEventsML instancemust be a validXrInstancehandleenableInfomust be a pointer to a validXrUserCalibrationEnableEventsInfoMLstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
instance- a handle to anXrInstancepreviously created withCreateInstance.enableInfo- theXrUserCalibrationEnableEventsInfoMLthat enables or disables user calibration events.
- The
-