The open source OpenXR runtime

xrt: introduce XRT_ERROR_INPUT_UNSUPPORTED

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2271>

+8
+1
doc/changes/xrt/mr.2271.md
··· 1 1 - xrt_device_get_tracked_pose returns xrt_result_t to improve error handling in the state tracker 2 + - introduce XRT_ERROR_INPUT_UNSUPPORTED
+1
src/xrt/auxiliary/util/u_pretty_print.c
··· 172 172 case XRT_ERROR_UNSUPPORTED_SPACE_TYPE: DG("XRT_ERROR_UNSUPPORTED_SPACE_TYPE"); return; 173 173 case XRT_ERROR_ANDROID: DG("XRT_ERROR_ANDROID"); return; 174 174 case XRT_ERROR_FEATURE_NOT_SUPPORTED: DG("XRT_ERROR_FEATURE_NOT_SUPPORTED"); return; 175 + case XRT_ERROR_INPUT_UNSUPPORTED: DG("XRT_ERROR_INPUT_UNSUPPORTED"); return; 175 176 } 176 177 // clang-format on 177 178
+6
src/xrt/include/xrt/xrt_results.h
··· 189 189 * The supplied space type is not supported for this operation. 190 190 */ 191 191 XRT_ERROR_UNSUPPORTED_SPACE_TYPE = -30, 192 + 192 193 /*! 193 194 * Some other Android error, typically a logic error that should be impossible to reach. 194 195 */ ··· 198 199 * Returned when a feature is not supported by the device. 199 200 */ 200 201 XRT_ERROR_FEATURE_NOT_SUPPORTED = -32, 202 + 203 + /*! 204 + * The input provided is a valid value from the enum xrt_input_name but is not supported by the driver. 205 + */ 206 + XRT_ERROR_INPUT_UNSUPPORTED = -33, 201 207 } xrt_result_t;