wineopenxr: Handle XrPosef tracing.

CW-Bug-Id: #23689
This commit is contained in:
Paul Gofman 2024-04-18 13:52:45 -06:00 committed by Arkadiusz Hiler
parent a3711d4747
commit be90b5e952
2 changed files with 5 additions and 2 deletions

View File

@ -1358,7 +1358,10 @@ class XrParam(object):
elif self.type in ["XrVector2f"]:
self.format_str = "%f, %f"
self.format_conv = "{0}.x, {0}.y"
elif self.type in ["VisualID", "xcb_visualid_t", "VkInstance", "XrPosef"]:
elif self.type in ["XrPosef"]:
self.format_str = "{{%f, %f, %f, %f}, {%f %f %f}}"
self.format_conv = "{0}.orientation.x, {0}.orientation.y, {0}.orientation.z, {0}.orientation.w, {0}.position.x, {0}.position.y, {0}.position.z"
elif self.type in ["VisualID", "xcb_visualid_t", "VkInstance"]:
# Don't care about Linux specific types.
self.format_str = ""
else:

View File

@ -648,7 +648,7 @@ static XrResult WINAPI wine_xrSetInputDeviceActiveEXT(XrSession session, XrPath
static XrResult WINAPI wine_xrSetInputDeviceLocationEXT(XrSession session, XrPath topLevelPath, XrPath inputSourcePath, XrSpace space, XrPosef pose)
{
WINE_TRACE("%p, 0x%s, 0x%s, %p, %p\n", session, wine_dbgstr_longlong(topLevelPath), wine_dbgstr_longlong(inputSourcePath), space, &pose);
WINE_TRACE("%p, 0x%s, 0x%s, %p, {{%f, %f, %f, %f}, {%f %f %f}}\n", session, wine_dbgstr_longlong(topLevelPath), wine_dbgstr_longlong(inputSourcePath), space, pose.orientation.x, pose.orientation.y, pose.orientation.z, pose.orientation.w, pose.position.x, pose.position.y, pose.position.z);
return ((wine_XrSession *)session)->wine_instance->funcs.p_xrSetInputDeviceLocationEXT(((wine_XrSession *)session)->session, topLevelPath, inputSourcePath, space, pose);
}