Skip to content

Commit 6c5bc75

Browse files
committed
Allow controller hand tracker data source with Forward tracking off.
1 parent 5ff1737 commit 6c5bc75

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

virtualdesktop-openxr/hand_tracking.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ namespace virtualdesktop_openxr {
156156
return XR_ERROR_FUNCTION_UNSUPPORTED;
157157
}
158158

159-
if (!m_supportsHandTracking) {
159+
if (!m_supportsHandTracking && !has_XR_EXT_hand_tracking_data_source) {
160160
return XR_ERROR_FEATURE_UNSUPPORTED;
161161
}
162162

virtualdesktop-openxr/system.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ namespace virtualdesktop_openxr {
160160
TLArg(properties->graphicsProperties.maxSwapchainImageHeight, "MaxSwapchainImageHeight"));
161161

162162
if (has_XR_EXT_hand_tracking && handTrackingProperties) {
163-
handTrackingProperties->supportsHandTracking = m_supportsHandTracking ? XR_TRUE : XR_FALSE;
163+
handTrackingProperties->supportsHandTracking =
164+
(m_supportsHandTracking || has_XR_EXT_hand_tracking_data_source) ? XR_TRUE : XR_FALSE;
164165

165166
TraceLoggingWrite(g_traceProvider,
166167
"xrGetSystemProperties",

0 commit comments

Comments
 (0)