mirror of
https://github.com/suyu-emu/Yucom.git
synced 2026-09-21 13:22:43 -07:00
vrclient: Truncate short VREvent_t structs
This commit is contained in:
@@ -456,6 +456,7 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e
|
||||
cfile.write(" TRACE(\"%p\\n\", _this);\n")
|
||||
|
||||
if do_win_to_lin:
|
||||
#XXX we should pass the struct size here
|
||||
cpp.write(" if(%s)\n" % do_win_to_lin[1])
|
||||
cpp.write(" struct_%s_%s_win_to_lin(%s, &lin);\n" % (strip_ns(do_win_to_lin[0]), display_sdkver(sdkver), do_win_to_lin[1]))
|
||||
|
||||
@@ -497,6 +498,7 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e
|
||||
unnamed = 'a'
|
||||
first = True
|
||||
next_is_size = False
|
||||
convert_size_param = ""
|
||||
for param in get_params(method):
|
||||
if not first:
|
||||
cpp.write(", ")
|
||||
@@ -527,8 +529,10 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e
|
||||
next_is_size = False
|
||||
if param.type.spelling == "uint32_t":
|
||||
cpp.write("%s ? sizeof(lin) : 0" % param.spelling)
|
||||
convert_size_param = ", " + param.spelling
|
||||
else:
|
||||
cpp.write("(%s)%s" % (param.type.spelling, param.spelling))
|
||||
convert_size_param = ", -1"
|
||||
elif "&" in param.type.spelling:
|
||||
cfile.write(", %s" % param.spelling)
|
||||
cpp.write("*%s" % param.spelling)
|
||||
@@ -560,8 +564,10 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e
|
||||
if path_conv["w2l_arrays"][i]:
|
||||
cfile.write(" vrclient_free_stringlist(lin_%s);\n" % path_conv["w2l_names"][i])
|
||||
if do_lin_to_win:
|
||||
if next_is_size and not convert_size_param:
|
||||
convert_size_param = ", -1"
|
||||
cpp.write(" if(%s)\n" % do_lin_to_win[1])
|
||||
cpp.write(" struct_%s_%s_lin_to_win(&lin, %s);\n" % (strip_ns(do_lin_to_win[0]), display_sdkver(sdkver), do_lin_to_win[1]))
|
||||
cpp.write(" struct_%s_%s_lin_to_win(&lin, %s%s);\n" % (strip_ns(do_lin_to_win[0]), display_sdkver(sdkver), do_lin_to_win[1], convert_size_param))
|
||||
if do_lin_to_win or do_win_to_lin:
|
||||
cpp.write(" return _ret;\n")
|
||||
if do_wrap:
|
||||
@@ -849,7 +855,7 @@ def handle_struct(sdkver, struct):
|
||||
which.add(LIN_TO_WIN)
|
||||
which.add(WIN_TO_LIN)
|
||||
|
||||
if strip_ns(vrchild.displayname) in system_structs:
|
||||
if strip_ns(struct.displayname) in system_structs:
|
||||
which.add(WRAPPERS)
|
||||
|
||||
if len(which) == 0:
|
||||
@@ -895,7 +901,7 @@ def handle_struct(sdkver, struct):
|
||||
cppfile.write("} __attribute__ ((ms_struct));\n")
|
||||
cppfile.write("#pragma pack(pop)\n\n")
|
||||
|
||||
def dump_converter(src, dst):
|
||||
def dump_converter(src, dst, size):
|
||||
for m in struct.get_children():
|
||||
if m.kind == clang.cindex.CursorKind.FIELD_DECL:
|
||||
if m.type.get_canonical().kind == clang.cindex.TypeKind.CONSTANTARRAY:
|
||||
@@ -909,23 +915,35 @@ def handle_struct(sdkver, struct):
|
||||
elif struct.displayname in struct_size_fields and \
|
||||
m.displayname in struct_size_fields[struct.displayname]:
|
||||
cppfile.write(" " + dst + "->" + m.displayname + " = sizeof(*" + dst + ");\n")
|
||||
elif size and strip_ns(m.type.get_canonical().spelling) == "VREvent_Data_t":
|
||||
#truncate variable-length data struct at the end of the parent struct
|
||||
#XXX: dumb hard-coding. are the other types with lengths variable length?
|
||||
cppfile.write(" memcpy(&" + dst + "->data, &" + src + "->data, " + size + " - (((char*)&" + dst + "->data) - ((char*)" + dst + ")));\n")
|
||||
else:
|
||||
cppfile.write(" " + dst + "->" + m.displayname + " = " + src + "->" + m.displayname + ";\n")
|
||||
|
||||
if strip_ns(struct.displayname) in next_is_size_structs:
|
||||
size_arg = "sz"
|
||||
size_arg_type = ", uint32_t sz"
|
||||
else:
|
||||
size_arg = None
|
||||
size_arg_type = ""
|
||||
|
||||
if LIN_TO_WIN in which:
|
||||
hfile.write("extern void struct_%s_lin_to_win(void *l, void *w);\n" % handler_name)
|
||||
cppfile.write("void struct_%s_lin_to_win(void *l, void *w)\n{\n" % handler_name)
|
||||
hfile.write("extern void struct_%s_lin_to_win(void *l, void *w%s);\n" % (handler_name, size_arg_type))
|
||||
cppfile.write("void struct_%s_lin_to_win(void *l, void *w%s)\n{\n" % (handler_name, size_arg_type))
|
||||
cppfile.write(" struct win%s *win = (struct win%s *)w;\n" % (handler_name, handler_name))
|
||||
cppfile.write(" %s *lin = (%s *)l;\n" % (struct.displayname, struct.displayname))
|
||||
dump_converter("lin", "win")
|
||||
dump_converter("lin", "win", size_arg)
|
||||
cppfile.write("}\n\n")
|
||||
|
||||
if WIN_TO_LIN in which:
|
||||
#XXX: should pass size param here, too
|
||||
hfile.write("extern void struct_%s_win_to_lin(void *w, void *l);\n" % handler_name)
|
||||
cppfile.write("void struct_%s_win_to_lin(void *w, void *l)\n{\n" % handler_name)
|
||||
cppfile.write(" struct win%s *win = (struct win%s *)w;\n" % (handler_name, handler_name))
|
||||
cppfile.write(" %s *lin = (%s *)l;\n" % (struct.displayname, struct.displayname))
|
||||
dump_converter("win", "lin")
|
||||
dump_converter("win", "lin", None)
|
||||
cppfile.write("}\n\n")
|
||||
|
||||
if WRAPPERS in which:
|
||||
@@ -935,7 +953,7 @@ def handle_struct(sdkver, struct):
|
||||
cppfile.write(" struct win%s *win = (struct win%s *)malloc(sizeof(*win));\n" % (handler_name, handler_name))
|
||||
cppfile.write(" %s *lin = (%s *)l;\n" % (struct.displayname, struct.displayname))
|
||||
|
||||
dump_converter("lin", "win")
|
||||
dump_converter("lin", "win", None)
|
||||
|
||||
cppfile.write(" win->linux_side = lin;\n");
|
||||
cppfile.write(" return win;\n")
|
||||
|
||||
@@ -42,7 +42,7 @@ vr::EVRInputError cppIVRInput_IVRInput_003_GetDigitalActionData(void *linux_side
|
||||
struct_InputDigitalActionData_t_1015_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0);
|
||||
if(pActionData)
|
||||
struct_InputDigitalActionData_t_1015_lin_to_win(&lin, pActionData);
|
||||
struct_InputDigitalActionData_t_1015_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ vr::EVRInputError cppIVRInput_IVRInput_003_GetAnalogActionData(void *linux_side,
|
||||
struct_InputAnalogActionData_t_1015_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0);
|
||||
if(pActionData)
|
||||
struct_InputAnalogActionData_t_1015_lin_to_win(&lin, pActionData);
|
||||
struct_InputAnalogActionData_t_1015_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ vr::EVRInputError cppIVRInput_IVRInput_003_GetPoseActionData(void *linux_side, V
|
||||
struct_InputPoseActionData_t_1015_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetPoseActionData((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0);
|
||||
if(pActionData)
|
||||
struct_InputPoseActionData_t_1015_lin_to_win(&lin, pActionData);
|
||||
struct_InputPoseActionData_t_1015_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ vr::EVRInputError cppIVRInput_IVRInput_004_GetDigitalActionData(void *linux_side
|
||||
struct_InputDigitalActionData_t_1017_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0, (vr::VRInputValueHandle_t)ulRestrictToDevice);
|
||||
if(pActionData)
|
||||
struct_InputDigitalActionData_t_1017_lin_to_win(&lin, pActionData);
|
||||
struct_InputDigitalActionData_t_1017_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ vr::EVRInputError cppIVRInput_IVRInput_004_GetAnalogActionData(void *linux_side,
|
||||
struct_InputAnalogActionData_t_1017_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0, (vr::VRInputValueHandle_t)ulRestrictToDevice);
|
||||
if(pActionData)
|
||||
struct_InputAnalogActionData_t_1017_lin_to_win(&lin, pActionData);
|
||||
struct_InputAnalogActionData_t_1017_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ vr::EVRInputError cppIVRInput_IVRInput_004_GetPoseActionData(void *linux_side, V
|
||||
struct_InputPoseActionData_t_1017_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetPoseActionData((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0, (vr::VRInputValueHandle_t)ulRestrictToDevice);
|
||||
if(pActionData)
|
||||
struct_InputPoseActionData_t_1017_lin_to_win(&lin, pActionData);
|
||||
struct_InputPoseActionData_t_1017_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ vr::EVRInputError cppIVRInput_IVRInput_004_GetSkeletalActionData(void *linux_sid
|
||||
struct_InputSkeletalActionData_t_1017_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0, (vr::VRInputValueHandle_t)ulRestrictToDevice);
|
||||
if(pActionData)
|
||||
struct_InputSkeletalActionData_t_1017_lin_to_win(&lin, pActionData);
|
||||
struct_InputSkeletalActionData_t_1017_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ vr::EVRInputError cppIVRInput_IVRInput_005_GetDigitalActionData(void *linux_side
|
||||
struct_InputDigitalActionData_t_1322_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0, (vr::VRInputValueHandle_t)ulRestrictToDevice);
|
||||
if(pActionData)
|
||||
struct_InputDigitalActionData_t_1322_lin_to_win(&lin, pActionData);
|
||||
struct_InputDigitalActionData_t_1322_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ vr::EVRInputError cppIVRInput_IVRInput_005_GetAnalogActionData(void *linux_side,
|
||||
struct_InputAnalogActionData_t_1322_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0, (vr::VRInputValueHandle_t)ulRestrictToDevice);
|
||||
if(pActionData)
|
||||
struct_InputAnalogActionData_t_1322_lin_to_win(&lin, pActionData);
|
||||
struct_InputAnalogActionData_t_1322_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ vr::EVRInputError cppIVRInput_IVRInput_005_GetPoseActionData(void *linux_side, V
|
||||
struct_InputPoseActionData_t_1322_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetPoseActionData((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0, (vr::VRInputValueHandle_t)ulRestrictToDevice);
|
||||
if(pActionData)
|
||||
struct_InputPoseActionData_t_1322_lin_to_win(&lin, pActionData);
|
||||
struct_InputPoseActionData_t_1322_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ vr::EVRInputError cppIVRInput_IVRInput_005_GetSkeletalActionData(void *linux_sid
|
||||
struct_InputSkeletalActionData_t_1322_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0);
|
||||
if(pActionData)
|
||||
struct_InputSkeletalActionData_t_1322_lin_to_win(&lin, pActionData);
|
||||
struct_InputSkeletalActionData_t_1322_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ vr::EVRInputError cppIVRInput_IVRInput_006_GetDigitalActionData(void *linux_side
|
||||
struct_InputDigitalActionData_t_1418_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0, (vr::VRInputValueHandle_t)ulRestrictToDevice);
|
||||
if(pActionData)
|
||||
struct_InputDigitalActionData_t_1418_lin_to_win(&lin, pActionData);
|
||||
struct_InputDigitalActionData_t_1418_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ vr::EVRInputError cppIVRInput_IVRInput_006_GetAnalogActionData(void *linux_side,
|
||||
struct_InputAnalogActionData_t_1418_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0, (vr::VRInputValueHandle_t)ulRestrictToDevice);
|
||||
if(pActionData)
|
||||
struct_InputAnalogActionData_t_1418_lin_to_win(&lin, pActionData);
|
||||
struct_InputAnalogActionData_t_1418_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ vr::EVRInputError cppIVRInput_IVRInput_006_GetPoseActionDataRelativeToNow(void *
|
||||
struct_InputPoseActionData_t_1418_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetPoseActionDataRelativeToNow((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0, (vr::VRInputValueHandle_t)ulRestrictToDevice);
|
||||
if(pActionData)
|
||||
struct_InputPoseActionData_t_1418_lin_to_win(&lin, pActionData);
|
||||
struct_InputPoseActionData_t_1418_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ vr::EVRInputError cppIVRInput_IVRInput_006_GetPoseActionDataForNextFrame(void *l
|
||||
struct_InputPoseActionData_t_1418_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetPoseActionDataForNextFrame((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0, (vr::VRInputValueHandle_t)ulRestrictToDevice);
|
||||
if(pActionData)
|
||||
struct_InputPoseActionData_t_1418_lin_to_win(&lin, pActionData);
|
||||
struct_InputPoseActionData_t_1418_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ vr::EVRInputError cppIVRInput_IVRInput_006_GetSkeletalActionData(void *linux_sid
|
||||
struct_InputSkeletalActionData_t_1418_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0);
|
||||
if(pActionData)
|
||||
struct_InputSkeletalActionData_t_1418_lin_to_win(&lin, pActionData);
|
||||
struct_InputSkeletalActionData_t_1418_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ vr::EVRInputError cppIVRInput_IVRInput_007_GetDigitalActionData(void *linux_side
|
||||
struct_InputDigitalActionData_t_1610_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0, (vr::VRInputValueHandle_t)ulRestrictToDevice);
|
||||
if(pActionData)
|
||||
struct_InputDigitalActionData_t_1610_lin_to_win(&lin, pActionData);
|
||||
struct_InputDigitalActionData_t_1610_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ vr::EVRInputError cppIVRInput_IVRInput_007_GetAnalogActionData(void *linux_side,
|
||||
struct_InputAnalogActionData_t_1610_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0, (vr::VRInputValueHandle_t)ulRestrictToDevice);
|
||||
if(pActionData)
|
||||
struct_InputAnalogActionData_t_1610_lin_to_win(&lin, pActionData);
|
||||
struct_InputAnalogActionData_t_1610_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ vr::EVRInputError cppIVRInput_IVRInput_007_GetPoseActionDataRelativeToNow(void *
|
||||
struct_InputPoseActionData_t_1610_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetPoseActionDataRelativeToNow((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0, (vr::VRInputValueHandle_t)ulRestrictToDevice);
|
||||
if(pActionData)
|
||||
struct_InputPoseActionData_t_1610_lin_to_win(&lin, pActionData);
|
||||
struct_InputPoseActionData_t_1610_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ vr::EVRInputError cppIVRInput_IVRInput_007_GetPoseActionDataForNextFrame(void *l
|
||||
struct_InputPoseActionData_t_1610_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetPoseActionDataForNextFrame((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0, (vr::VRInputValueHandle_t)ulRestrictToDevice);
|
||||
if(pActionData)
|
||||
struct_InputPoseActionData_t_1610_lin_to_win(&lin, pActionData);
|
||||
struct_InputPoseActionData_t_1610_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ vr::EVRInputError cppIVRInput_IVRInput_007_GetSkeletalActionData(void *linux_sid
|
||||
struct_InputSkeletalActionData_t_1610_win_to_lin(pActionData, &lin);
|
||||
_ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, unActionDataSize ? sizeof(lin) : 0);
|
||||
if(pActionData)
|
||||
struct_InputSkeletalActionData_t_1610_lin_to_win(&lin, pActionData);
|
||||
struct_InputSkeletalActionData_t_1610_lin_to_win(&lin, pActionData, unActionDataSize);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -187,7 +187,7 @@ bool cppIVROverlay_IVROverlay_010_PollNextOverlayEvent(void *linux_side, VROverl
|
||||
struct_VREvent_t_0918_win_to_lin(pEvent, &lin);
|
||||
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, uncbVREvent ? sizeof(lin) : 0);
|
||||
if(pEvent)
|
||||
struct_VREvent_t_0918_lin_to_win(&lin, pEvent);
|
||||
struct_VREvent_t_0918_lin_to_win(&lin, pEvent, uncbVREvent);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -197,7 +197,7 @@ bool cppIVROverlay_IVROverlay_011_PollNextOverlayEvent(void *linux_side, VROverl
|
||||
struct_VREvent_t_0920_win_to_lin(pEvent, &lin);
|
||||
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, uncbVREvent ? sizeof(lin) : 0);
|
||||
if(pEvent)
|
||||
struct_VREvent_t_0920_lin_to_win(&lin, pEvent);
|
||||
struct_VREvent_t_0920_lin_to_win(&lin, pEvent, uncbVREvent);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -197,7 +197,7 @@ bool cppIVROverlay_IVROverlay_012_PollNextOverlayEvent(void *linux_side, VROverl
|
||||
struct_VREvent_t_101_win_to_lin(pEvent, &lin);
|
||||
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, uncbVREvent ? sizeof(lin) : 0);
|
||||
if(pEvent)
|
||||
struct_VREvent_t_101_lin_to_win(&lin, pEvent);
|
||||
struct_VREvent_t_101_lin_to_win(&lin, pEvent, uncbVREvent);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -217,7 +217,7 @@ bool cppIVROverlay_IVROverlay_013_PollNextOverlayEvent(void *linux_side, VROverl
|
||||
struct_VREvent_t_104_win_to_lin(pEvent, &lin);
|
||||
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, uncbVREvent ? sizeof(lin) : 0);
|
||||
if(pEvent)
|
||||
struct_VREvent_t_104_lin_to_win(&lin, pEvent);
|
||||
struct_VREvent_t_104_lin_to_win(&lin, pEvent, uncbVREvent);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -217,7 +217,7 @@ bool cppIVROverlay_IVROverlay_014_PollNextOverlayEvent(void *linux_side, VROverl
|
||||
struct_VREvent_t_106_win_to_lin(pEvent, &lin);
|
||||
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, uncbVREvent ? sizeof(lin) : 0);
|
||||
if(pEvent)
|
||||
struct_VREvent_t_106_lin_to_win(&lin, pEvent);
|
||||
struct_VREvent_t_106_lin_to_win(&lin, pEvent, uncbVREvent);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ bool cppIVROverlay_IVROverlay_016_PollNextOverlayEvent(void *linux_side, VROverl
|
||||
struct_VREvent_t_1010_win_to_lin(pEvent, &lin);
|
||||
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, uncbVREvent ? sizeof(lin) : 0);
|
||||
if(pEvent)
|
||||
struct_VREvent_t_1010_lin_to_win(&lin, pEvent);
|
||||
struct_VREvent_t_1010_lin_to_win(&lin, pEvent, uncbVREvent);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ bool cppIVROverlay_IVROverlay_017_PollNextOverlayEvent(void *linux_side, VROverl
|
||||
struct_VREvent_t_1011_win_to_lin(pEvent, &lin);
|
||||
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, uncbVREvent ? sizeof(lin) : 0);
|
||||
if(pEvent)
|
||||
struct_VREvent_t_1011_lin_to_win(&lin, pEvent);
|
||||
struct_VREvent_t_1011_lin_to_win(&lin, pEvent, uncbVREvent);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ bool cppIVROverlay_IVROverlay_018_PollNextOverlayEvent(void *linux_side, VROverl
|
||||
struct_VREvent_t_1017_win_to_lin(pEvent, &lin);
|
||||
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, uncbVREvent ? sizeof(lin) : 0);
|
||||
if(pEvent)
|
||||
struct_VREvent_t_1017_lin_to_win(&lin, pEvent);
|
||||
struct_VREvent_t_1017_lin_to_win(&lin, pEvent, uncbVREvent);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ bool cppIVROverlay_IVROverlay_019_PollNextOverlayEvent(void *linux_side, VROverl
|
||||
struct_VREvent_t_1610_win_to_lin(pEvent, &lin);
|
||||
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, uncbVREvent ? sizeof(lin) : 0);
|
||||
if(pEvent)
|
||||
struct_VREvent_t_1610_lin_to_win(&lin, pEvent);
|
||||
struct_VREvent_t_1610_lin_to_win(&lin, pEvent, uncbVREvent);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ bool cppIVRSystem_IVRSystem_003_GetControllerState(void *linux_side, TrackedDevi
|
||||
struct_VRControllerState001_t_091_win_to_lin(pControllerState, &lin);
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr);
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_091_lin_to_win(&lin, pControllerState);
|
||||
struct_VRControllerState001_t_091_lin_to_win(&lin, pControllerState, -1);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -174,7 +174,7 @@ bool cppIVRSystem_IVRSystem_003_GetControllerStateWithPose(void *linux_side, Tra
|
||||
struct_VRControllerState001_t_091_win_to_lin(pControllerState, &lin);
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::TrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, (vr::TrackedDevicePose_t *)pTrackedDevicePose);
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_091_lin_to_win(&lin, pControllerState);
|
||||
struct_VRControllerState001_t_091_lin_to_win(&lin, pControllerState, -1);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ bool cppIVRSystem_IVRSystem_004_GetControllerState(void *linux_side, TrackedDevi
|
||||
struct_VRControllerState001_t_092_win_to_lin(pControllerState, &lin);
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr);
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_092_lin_to_win(&lin, pControllerState);
|
||||
struct_VRControllerState001_t_092_lin_to_win(&lin, pControllerState, -1);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ bool cppIVRSystem_IVRSystem_004_GetControllerStateWithPose(void *linux_side, Tra
|
||||
struct_VRControllerState001_t_092_win_to_lin(pControllerState, &lin);
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::TrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, (vr::TrackedDevicePose_t *)pTrackedDevicePose);
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_092_lin_to_win(&lin, pControllerState);
|
||||
struct_VRControllerState001_t_092_lin_to_win(&lin, pControllerState, -1);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ bool cppIVRSystem_IVRSystem_005_GetControllerState(void *linux_side, TrackedDevi
|
||||
struct_VRControllerState001_t_098_win_to_lin(pControllerState, &lin);
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr);
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_098_lin_to_win(&lin, pControllerState);
|
||||
struct_VRControllerState001_t_098_lin_to_win(&lin, pControllerState, -1);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ bool cppIVRSystem_IVRSystem_005_GetControllerStateWithPose(void *linux_side, Tra
|
||||
struct_VRControllerState001_t_098_win_to_lin(pControllerState, &lin);
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::TrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, (vr::TrackedDevicePose_t *)pTrackedDevicePose);
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_098_lin_to_win(&lin, pControllerState);
|
||||
struct_VRControllerState001_t_098_lin_to_win(&lin, pControllerState, -1);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ bool cppIVRSystem_IVRSystem_006_GetControllerState(void *linux_side, TrackedDevi
|
||||
struct_VRControllerState001_t_0910_win_to_lin(pControllerState, &lin);
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr);
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_0910_lin_to_win(&lin, pControllerState);
|
||||
struct_VRControllerState001_t_0910_lin_to_win(&lin, pControllerState, -1);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ bool cppIVRSystem_IVRSystem_006_GetControllerStateWithPose(void *linux_side, Tra
|
||||
struct_VRControllerState001_t_0910_win_to_lin(pControllerState, &lin);
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::TrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, (vr::TrackedDevicePose_t *)pTrackedDevicePose);
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_0910_lin_to_win(&lin, pControllerState);
|
||||
struct_VRControllerState001_t_0910_lin_to_win(&lin, pControllerState, -1);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ bool cppIVRSystem_IVRSystem_009_GetControllerState(void *linux_side, TrackedDevi
|
||||
struct_VRControllerState001_t_0912_win_to_lin(pControllerState, &lin);
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr);
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_0912_lin_to_win(&lin, pControllerState);
|
||||
struct_VRControllerState001_t_0912_lin_to_win(&lin, pControllerState, -1);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ bool cppIVRSystem_IVRSystem_009_GetControllerStateWithPose(void *linux_side, ETr
|
||||
struct_VRControllerState001_t_0912_win_to_lin(pControllerState, &lin);
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::ETrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, (vr::TrackedDevicePose_t *)pTrackedDevicePose);
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_0912_lin_to_win(&lin, pControllerState);
|
||||
struct_VRControllerState001_t_0912_lin_to_win(&lin, pControllerState, -1);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user