From 37853f8469a26ef78ea3965b9a730a1e9fdb058d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Wed, 27 Sep 2023 15:18:31 +0200 Subject: [PATCH] vrclient: Pass write function as parameter to handle_method*. CW-Bug-Id: #22729 --- vrclient_x64/gen_wrapper.py | 108 +++++++++--------- .../cppIVRCompositor_IVRCompositor_005.cpp | 4 +- .../cppIVRCompositor_IVRCompositor_006.cpp | 4 +- .../cppIVRCompositor_IVRCompositor_007.cpp | 4 +- .../cppIVRCompositor_IVRCompositor_008.cpp | 4 +- .../cppIVRCompositor_IVRCompositor_009.cpp | 4 +- .../cppIVRCompositor_IVRCompositor_010.cpp | 4 +- .../cppIVRCompositor_IVRCompositor_016.cpp | 4 +- .../vrclient_x64/cppIVRInput_IVRInput_003.cpp | 16 +-- .../vrclient_x64/cppIVRInput_IVRInput_004.cpp | 16 +-- .../vrclient_x64/cppIVRInput_IVRInput_005.cpp | 16 +-- .../vrclient_x64/cppIVRInput_IVRInput_006.cpp | 20 ++-- .../vrclient_x64/cppIVRInput_IVRInput_007.cpp | 20 ++-- .../vrclient_x64/cppIVRInput_IVRInput_010.cpp | 20 ++-- .../cppIVROverlayView_IVROverlayView_003.cpp | 2 +- .../cppIVROverlay_IVROverlay_010.cpp | 4 +- .../cppIVROverlay_IVROverlay_011.cpp | 4 +- .../cppIVROverlay_IVROverlay_012.cpp | 4 +- .../cppIVROverlay_IVROverlay_013.cpp | 4 +- .../cppIVROverlay_IVROverlay_014.cpp | 4 +- .../cppIVROverlay_IVROverlay_016.cpp | 4 +- .../cppIVROverlay_IVROverlay_017.cpp | 4 +- .../cppIVROverlay_IVROverlay_018.cpp | 4 +- .../cppIVROverlay_IVROverlay_019.cpp | 4 +- .../cppIVROverlay_IVROverlay_020.cpp | 4 +- .../cppIVROverlay_IVROverlay_021.cpp | 4 +- .../cppIVROverlay_IVROverlay_022.cpp | 4 +- .../cppIVROverlay_IVROverlay_024.cpp | 4 +- .../cppIVROverlay_IVROverlay_025.cpp | 4 +- .../cppIVROverlay_IVROverlay_026.cpp | 4 +- .../cppIVROverlay_IVROverlay_027.cpp | 4 +- ...cppIVRRenderModels_IVRRenderModels_002.cpp | 6 +- ...cppIVRRenderModels_IVRRenderModels_004.cpp | 6 +- ...cppIVRRenderModels_IVRRenderModels_005.cpp | 6 +- ...cppIVRRenderModels_IVRRenderModels_006.cpp | 6 +- .../cppIVRSystem_IVRSystem_003.cpp | 8 +- .../cppIVRSystem_IVRSystem_004.cpp | 8 +- .../cppIVRSystem_IVRSystem_005.cpp | 8 +- .../cppIVRSystem_IVRSystem_006.cpp | 8 +- .../cppIVRSystem_IVRSystem_009.cpp | 8 +- .../cppIVRSystem_IVRSystem_010.cpp | 8 +- .../cppIVRSystem_IVRSystem_011.cpp | 16 +-- .../cppIVRSystem_IVRSystem_012.cpp | 16 +-- .../cppIVRSystem_IVRSystem_014.cpp | 16 +-- .../cppIVRSystem_IVRSystem_015.cpp | 16 +-- .../cppIVRSystem_IVRSystem_016.cpp | 16 +-- .../cppIVRSystem_IVRSystem_017.cpp | 16 +-- .../cppIVRSystem_IVRSystem_019.cpp | 16 +-- .../cppIVRSystem_IVRSystem_020.cpp | 16 +-- .../cppIVRSystem_IVRSystem_021.cpp | 16 +-- .../cppIVRSystem_IVRSystem_022.cpp | 16 +-- ...pIVRTrackedCamera_IVRTrackedCamera_001.cpp | 2 +- ...pIVRTrackedCamera_IVRTrackedCamera_004.cpp | 12 +- ...pIVRTrackedCamera_IVRTrackedCamera_005.cpp | 12 +- ...pIVRTrackedCamera_IVRTrackedCamera_006.cpp | 12 +- 55 files changed, 290 insertions(+), 290 deletions(-) diff --git a/vrclient_x64/gen_wrapper.py b/vrclient_x64/gen_wrapper.py index b5d825db..24c5ae6a 100755 --- a/vrclient_x64/gen_wrapper.py +++ b/vrclient_x64/gen_wrapper.py @@ -525,16 +525,16 @@ def declspec(decl, name): return f'{const}{typename}{name}' -def handle_method_hpp(method, cppname, cpp_h): +def handle_method_hpp(method, cppname, out): ret = f'{declspec(method.result_type, "")} ' params = [declspec(p, "") for p in method.get_arguments()] params = ['void *'] + params - cpp_h.write(f'extern {ret}{cppname}_{method.name}({", ".join(params)});\n') + out(f'extern {ret}{cppname}_{method.name}({", ".join(params)});\n') -def handle_method_cpp(method, classname, cppname, cpp): +def handle_method_cpp(method, classname, cppname, out): returns_void = method.result_type.kind == TypeKind.VOID ret = f'{declspec(method.result_type, "")} ' @@ -546,11 +546,11 @@ def handle_method_cpp(method, classname, cppname, cpp): names = ['linux_side'] + names params = ['void *linux_side'] + params - cpp.write(f'{ret}{cppname}_{method.name}({", ".join(params)})\n') - cpp.write("{\n") + out(f'{ret}{cppname}_{method.name}({", ".join(params)})\n') + out(u'{\n') if not returns_void: - cpp.write(f' {declspec(method.result_type, "_ret")};\n') + out(f' {declspec(method.result_type, "_ret")};\n') do_lin_to_win = None do_win_to_lin = None @@ -580,17 +580,17 @@ def handle_method_cpp(method, classname, cppname, cpp): if do_lin_to_win or do_win_to_lin: if do_lin_to_win: - cpp.write(" %s lin;\n" % do_lin_to_win[0]) + out(f' {do_lin_to_win[0]} lin;\n') else: - cpp.write(" %s lin;\n" % do_win_to_lin[0]) + out(f' {do_win_to_lin[0]} lin;\n') if do_wrap: - cpp.write(" %s *lin;\n" % do_wrap[0]) + out(f' {do_wrap[0]} *lin;\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])) + out(f' if ({do_win_to_lin[1]})\n') + out(f' struct_{strip_ns(do_win_to_lin[0])}_{display_sdkver(sdkver)}_win_to_lin({do_win_to_lin[1]}, &lin);\n') size_fixup = {} @@ -607,19 +607,19 @@ def handle_method_cpp(method, classname, cppname, cpp): convert_size_param = ', -1' elif struct_needs_size_adjustment(real_type.get_canonical()): real_name = real_type.spelling - cpp.write(f' uint32_t lin_{next_name} = std::min({next_name}, (uint32_t)sizeof({real_name}));\n') + out(f' uint32_t lin_{next_name} = std::min({next_name}, (uint32_t)sizeof({real_name}));\n') convert_size_param = f', {next_name}' size_fixup[next_name] = True elif do_win_to_lin and do_win_to_lin[1] == name: assert do_win_to_lin[0] not in STRUCTS_NEXT_IS_SIZE_UNHANDLED - cpp.write(f' uint32_t lin_{next_name} = {next_name} ? sizeof(lin) : 0;\n') + out(f' uint32_t lin_{next_name} = {next_name} ? sizeof(lin) : 0;\n') convert_size_param = f', {next_name}' size_fixup[next_name] = True if returns_void: - cpp.write(" ") + out(u' ') else: - cpp.write(" _ret = ") + out(u' _ret = ') params = [] for name, param in zip(names[1:], method.get_arguments()): @@ -636,21 +636,21 @@ def handle_method_cpp(method, classname, cppname, cpp): else: params.append("(%s)%s" % (param.type.spelling, name)) - cpp.write(f'(({classname}*)linux_side)->{method.spelling}({", ".join(params)});\n') + out(f'(({classname}*)linux_side)->{method.spelling}({", ".join(params)});\n') if do_lin_to_win: - cpp.write(" if(%s)\n" % 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)) + out(f' if ({do_lin_to_win[1]})\n') + out(f' struct_{strip_ns(do_lin_to_win[0])}_{display_sdkver(sdkver)}_lin_to_win(&lin, {do_lin_to_win[1]}{convert_size_param});\n') if do_wrap and not returns_void: - cpp.write(" if(_ret == 0)\n") - cpp.write(" *%s = struct_%s_%s_wrap(lin);\n" % (do_wrap[1], strip_ns(do_wrap[0]), display_sdkver(sdkver))) + out(u' if (_ret == 0)\n') + out(f' *{do_wrap[1]} = struct_{strip_ns(do_wrap[0])}_{display_sdkver(sdkver)}_wrap(lin);\n') if not returns_void: - cpp.write(u' return _ret;\n') - cpp.write("}\n\n") + out(u' return _ret;\n') + out(u'}\n\n') -def handle_thiscall_wrapper(klass, method, cfile): +def handle_thiscall_wrapper(klass, method, out): returns_record = method.result_type.get_canonical().kind == TypeKind.RECORD def param_stack_size(param): @@ -661,10 +661,10 @@ def handle_thiscall_wrapper(klass, method, cfile): if returns_record: size += 4 name = f'win{klass.spelling}_{klass.version}_{method.name}' - cfile.write(f'DEFINE_THISCALL_WRAPPER({name}, {size})\n') + out(f'DEFINE_THISCALL_WRAPPER({name}, {size})\n') -def handle_method_c(method, classname, winclassname, cppname, iface_version, cfile): +def handle_method_c(method, classname, winclassname, cppname, iface_version, out): returns_void = method.result_type.kind == TypeKind.VOID returns_record = method.result_type.get_canonical().kind == TypeKind.RECORD @@ -682,51 +682,51 @@ def handle_method_c(method, classname, winclassname, cppname, iface_version, cfi params = [f'{winclassname} *_this'] + params names = ['_this'] + names - cfile.write(f'{ret}__thiscall {winclassname}_{method.name}({", ".join(params)})\n') - cfile.write("{\n") + out(f'{ret}__thiscall {winclassname}_{method.name}({", ".join(params)})\n') + out(u'{\n') if returns_record: del params[1] del names[1] if not returns_record and not returns_void: - cfile.write(f' {ret}_ret;\n') + out(f' {ret}_ret;\n') path_conv = get_path_converter(method) if path_conv: for i in range(len(path_conv["w2l_names"])): if path_conv["w2l_arrays"][i]: - cfile.write(" const char **lin_%s = vrclient_dos_to_unix_stringlist(%s);\n" % (path_conv["w2l_names"][i], path_conv["w2l_names"][i])) + out(f' const char **lin_{path_conv["w2l_names"][i]} = vrclient_dos_to_unix_stringlist({path_conv["w2l_names"][i]});\n') # TODO pass else: - cfile.write(" char lin_%s[PATH_MAX];\n" % path_conv["w2l_names"][i]) - cfile.write(" vrclient_dos_path_to_unix_path(%s, lin_%s);\n" % (path_conv["w2l_names"][i], path_conv["w2l_names"][i])) + out(f' char lin_{path_conv["w2l_names"][i]}[PATH_MAX];\n') + out(f' vrclient_dos_path_to_unix_path({path_conv["w2l_names"][i]}, lin_{path_conv["w2l_names"][i]});\n') - cfile.write(" TRACE(\"%p\\n\", _this);\n") + out(u' TRACE("%p\\n", _this);\n') if returns_record: - cfile.write(u' *_ret = ') + out(u' *_ret = ') elif not returns_void: - cfile.write(u' _ret = ') + out(u' _ret = ') else: - cfile.write(u' ') + out(u' ') should_gen_wrapper = strip_ns(method.result_type.spelling).startswith("IVR") if should_gen_wrapper: - cfile.write("create_win_interface(pchNameAndVersion,\n ") + out(u'create_win_interface(pchNameAndVersion,\n ') is_method_overridden = False for classname_pattern, methodname, override_generator in method_overrides: if method.name == methodname and classname_pattern in classname: fn_name = override_generator(cppname, method) if fn_name: - cfile.write("%s(%s_%s, " % (fn_name, cppname, method.name)) + out("%s(%s_%s, " % (fn_name, cppname, method.name)) is_method_overridden = True break else: - cfile.write("%s_%s(" % (cppname, method.name)) + out(f'{cppname}_{method.name}(') def param_call(param, name): if name == '_this': return '_this->linux_side' @@ -734,36 +734,36 @@ def handle_method_c(method, classname, winclassname, cppname, iface_version, cfi return name params = ['_this'] + list(method.get_arguments()) - cfile.write(", ".join([param_call(p, n) for p, n in zip(params, names)])) + out(", ".join([param_call(p, n) for p, n in zip(params, names)])) if should_gen_wrapper: - cfile.write(")") + out(u')') if should_gen_wrapper: - cfile.write(")") + out(u')') if is_method_overridden: - cfile.write(", %s" % iface_version[iface_version.find("_") + 1:].lstrip("0")) + out(f', {iface_version[iface_version.find("_") + 1:].lstrip("0")}') for classname_pattern, user_data_type, _ in method_overrides_data: if classname_pattern in classname: - cfile.write(", &_this->user_data") + out(u', &_this->user_data') break - cfile.write(");\n") + out(u');\n') if path_conv and len(path_conv["l2w_names"]) > 0: for i in range(len(path_conv["l2w_names"])): assert(path_conv["l2w_names"][i]) #otherwise, no name means string is in return value. needs special handling. - cfile.write(" ") + out(u' ') if path_conv["return_is_size"]: - cfile.write("_ret = ") - cfile.write("vrclient_unix_path_to_dos_path(_ret, %s, %s, %s);\n" % (path_conv["l2w_names"][i], path_conv["l2w_names"][i], path_conv["l2w_lens"][i])) + out(u'_ret = ') + out(f'vrclient_unix_path_to_dos_path(_ret, {path_conv["l2w_names"][i]}, {path_conv["l2w_names"][i]}, {path_conv["l2w_lens"][i]});\n') if path_conv: for i in range(len(path_conv["w2l_names"])): if path_conv["w2l_arrays"][i]: - cfile.write(" vrclient_free_stringlist(lin_%s);\n" % path_conv["w2l_names"][i]) + out(f' vrclient_free_stringlist(lin_{path_conv["w2l_names"][i]});\n') if not returns_void: - cfile.write(u' return _ret;\n') - cfile.write("}\n\n") + out(u' return _ret;\n') + out(u'}\n\n') max_c_api_param_count = 0 @@ -836,24 +836,24 @@ WINE_DEFAULT_DEBUG_CHANNEL(vrclient); cfile.write("} %s;\n\n" % winclassname) for method in klass.methods: - handle_thiscall_wrapper(klass, method, cfile) + handle_thiscall_wrapper(klass, method, cfile.write) cfile.write('\n') for method in klass.methods: if type(method) is Destructor: continue - handle_method_hpp(method, cppname, cpp_h) + handle_method_hpp(method, cppname, cpp_h.write) for method in klass.methods: if type(method) is Destructor: continue - handle_method_cpp(method, klass.spelling, cppname, cpp) + handle_method_cpp(method, klass.spelling, cppname, cpp.write) for method in klass.methods: if type(method) is Destructor: continue else: - handle_method_c(method, klass.spelling, winclassname, cppname, klass.version, cfile) + handle_method_c(method, klass.spelling, winclassname, cppname, klass.version, cfile.write) cfile.write("extern vtable_ptr %s_vtable;\n\n" % winclassname) cfile.write("#ifndef __GNUC__\n") diff --git a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_005.cpp b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_005.cpp index 29808eb3..7a5f2574 100644 --- a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_005.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_005.cpp @@ -89,10 +89,10 @@ bool cppIVRCompositor_IVRCompositor_005_GetFrameTiming(void *linux_side, winComp { bool _ret; Compositor_FrameTiming lin; - if(pTiming) + if (pTiming) struct_Compositor_FrameTiming_091_win_to_lin(pTiming, &lin); _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); - if(pTiming) + if (pTiming) struct_Compositor_FrameTiming_091_lin_to_win(&lin, pTiming); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_006.cpp b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_006.cpp index 5ed6eee6..0fdd365b 100644 --- a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_006.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_006.cpp @@ -68,10 +68,10 @@ bool cppIVRCompositor_IVRCompositor_006_GetFrameTiming(void *linux_side, winComp { bool _ret; Compositor_FrameTiming lin; - if(pTiming) + if (pTiming) struct_Compositor_FrameTiming_092_win_to_lin(pTiming, &lin); _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); - if(pTiming) + if (pTiming) struct_Compositor_FrameTiming_092_lin_to_win(&lin, pTiming); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_007.cpp b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_007.cpp index 4fc01a20..8c141d8f 100644 --- a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_007.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_007.cpp @@ -63,10 +63,10 @@ bool cppIVRCompositor_IVRCompositor_007_GetFrameTiming(void *linux_side, winComp { bool _ret; Compositor_FrameTiming lin; - if(pTiming) + if (pTiming) struct_Compositor_FrameTiming_098_win_to_lin(pTiming, &lin); _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); - if(pTiming) + if (pTiming) struct_Compositor_FrameTiming_098_lin_to_win(&lin, pTiming); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_008.cpp b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_008.cpp index 3273c596..3f02f644 100644 --- a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_008.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_008.cpp @@ -63,10 +63,10 @@ bool cppIVRCompositor_IVRCompositor_008_GetFrameTiming(void *linux_side, winComp { bool _ret; Compositor_FrameTiming lin; - if(pTiming) + if (pTiming) struct_Compositor_FrameTiming_0910_win_to_lin(pTiming, &lin); _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); - if(pTiming) + if (pTiming) struct_Compositor_FrameTiming_0910_lin_to_win(&lin, pTiming); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_009.cpp b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_009.cpp index 9442889d..8ae42aba 100644 --- a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_009.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_009.cpp @@ -56,10 +56,10 @@ bool cppIVRCompositor_IVRCompositor_009_GetFrameTiming(void *linux_side, winComp { bool _ret; Compositor_FrameTiming lin; - if(pTiming) + if (pTiming) struct_Compositor_FrameTiming_0913_win_to_lin(pTiming, &lin); _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); - if(pTiming) + if (pTiming) struct_Compositor_FrameTiming_0913_lin_to_win(&lin, pTiming); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_010.cpp b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_010.cpp index ed031dbb..c5e47a71 100644 --- a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_010.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_010.cpp @@ -56,10 +56,10 @@ bool cppIVRCompositor_IVRCompositor_010_GetFrameTiming(void *linux_side, winComp { bool _ret; Compositor_FrameTiming lin; - if(pTiming) + if (pTiming) struct_Compositor_FrameTiming_0914_win_to_lin(pTiming, &lin); _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); - if(pTiming) + if (pTiming) struct_Compositor_FrameTiming_0914_lin_to_win(&lin, pTiming); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_016.cpp b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_016.cpp index e48c3e35..b551af26 100644 --- a/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_016.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_016.cpp @@ -63,10 +63,10 @@ bool cppIVRCompositor_IVRCompositor_016_GetFrameTiming(void *linux_side, winComp { bool _ret; Compositor_FrameTiming lin; - if(pTiming) + if (pTiming) struct_Compositor_FrameTiming_103_win_to_lin(pTiming, &lin); _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); - if(pTiming) + if (pTiming) struct_Compositor_FrameTiming_103_lin_to_win(&lin, pTiming); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_003.cpp b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_003.cpp index b80e91b5..14df1450 100644 --- a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_003.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_003.cpp @@ -48,11 +48,11 @@ EVRInputError cppIVRInput_IVRInput_003_GetDigitalActionData(void *linux_side, VR { EVRInputError _ret; InputDigitalActionData_t lin; - if(pActionData) + if (pActionData) struct_InputDigitalActionData_t_1015_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize); - if(pActionData) + if (pActionData) struct_InputDigitalActionData_t_1015_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -61,11 +61,11 @@ EVRInputError cppIVRInput_IVRInput_003_GetAnalogActionData(void *linux_side, VRA { EVRInputError _ret; InputAnalogActionData_t lin; - if(pActionData) + if (pActionData) struct_InputAnalogActionData_t_1015_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize); - if(pActionData) + if (pActionData) struct_InputAnalogActionData_t_1015_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -74,11 +74,11 @@ EVRInputError cppIVRInput_IVRInput_003_GetPoseActionData(void *linux_side, VRAct { EVRInputError _ret; InputPoseActionData_t lin; - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1015_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetPoseActionData((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, lin_unActionDataSize); - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1015_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -87,10 +87,10 @@ EVRInputError cppIVRInput_IVRInput_003_GetSkeletalActionData(void *linux_side, V { EVRInputError _ret; InputSkeletonActionData_t lin; - if(pActionData) + if (pActionData) struct_InputSkeletonActionData_t_1015_win_to_lin(pActionData, &lin); _ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, (vr::EVRSkeletalTransformSpace)eBoneParent, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, (uint32_t)unActionDataSize, (vr::VRBoneTransform_t *)pTransformArray, (uint32_t)unTransformArrayCount); - if(pActionData) + if (pActionData) struct_InputSkeletonActionData_t_1015_lin_to_win(&lin, pActionData); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_004.cpp b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_004.cpp index 142ad9ed..063a1a07 100644 --- a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_004.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_004.cpp @@ -48,11 +48,11 @@ EVRInputError cppIVRInput_IVRInput_004_GetDigitalActionData(void *linux_side, VR { EVRInputError _ret; InputDigitalActionData_t lin; - if(pActionData) + if (pActionData) struct_InputDigitalActionData_t_1017_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputDigitalActionData_t_1017_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -61,11 +61,11 @@ EVRInputError cppIVRInput_IVRInput_004_GetAnalogActionData(void *linux_side, VRA { EVRInputError _ret; InputAnalogActionData_t lin; - if(pActionData) + if (pActionData) struct_InputAnalogActionData_t_1017_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputAnalogActionData_t_1017_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -74,11 +74,11 @@ EVRInputError cppIVRInput_IVRInput_004_GetPoseActionData(void *linux_side, VRAct { EVRInputError _ret; InputPoseActionData_t lin; - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1017_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetPoseActionData((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1017_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -87,11 +87,11 @@ EVRInputError cppIVRInput_IVRInput_004_GetSkeletalActionData(void *linux_side, V { EVRInputError _ret; InputSkeletalActionData_t lin; - if(pActionData) + if (pActionData) struct_InputSkeletalActionData_t_1017_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputSkeletalActionData_t_1017_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_005.cpp b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_005.cpp index e3e86a64..d126b812 100644 --- a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_005.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_005.cpp @@ -48,11 +48,11 @@ EVRInputError cppIVRInput_IVRInput_005_GetDigitalActionData(void *linux_side, VR { EVRInputError _ret; InputDigitalActionData_t lin; - if(pActionData) + if (pActionData) struct_InputDigitalActionData_t_1322_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputDigitalActionData_t_1322_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -61,11 +61,11 @@ EVRInputError cppIVRInput_IVRInput_005_GetAnalogActionData(void *linux_side, VRA { EVRInputError _ret; InputAnalogActionData_t lin; - if(pActionData) + if (pActionData) struct_InputAnalogActionData_t_1322_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputAnalogActionData_t_1322_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -74,11 +74,11 @@ EVRInputError cppIVRInput_IVRInput_005_GetPoseActionData(void *linux_side, VRAct { EVRInputError _ret; InputPoseActionData_t lin; - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1322_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetPoseActionData((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1322_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -87,11 +87,11 @@ EVRInputError cppIVRInput_IVRInput_005_GetSkeletalActionData(void *linux_side, V { EVRInputError _ret; InputSkeletalActionData_t lin; - if(pActionData) + if (pActionData) struct_InputSkeletalActionData_t_1322_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize); - if(pActionData) + if (pActionData) struct_InputSkeletalActionData_t_1322_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_006.cpp b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_006.cpp index c455dfb1..acc695e8 100644 --- a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_006.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_006.cpp @@ -48,11 +48,11 @@ EVRInputError cppIVRInput_IVRInput_006_GetDigitalActionData(void *linux_side, VR { EVRInputError _ret; InputDigitalActionData_t lin; - if(pActionData) + if (pActionData) struct_InputDigitalActionData_t_1418_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputDigitalActionData_t_1418_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -61,11 +61,11 @@ EVRInputError cppIVRInput_IVRInput_006_GetAnalogActionData(void *linux_side, VRA { EVRInputError _ret; InputAnalogActionData_t lin; - if(pActionData) + if (pActionData) struct_InputAnalogActionData_t_1418_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputAnalogActionData_t_1418_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -74,11 +74,11 @@ EVRInputError cppIVRInput_IVRInput_006_GetPoseActionDataRelativeToNow(void *linu { EVRInputError _ret; InputPoseActionData_t lin; - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1418_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetPoseActionDataRelativeToNow((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1418_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -87,11 +87,11 @@ EVRInputError cppIVRInput_IVRInput_006_GetPoseActionDataForNextFrame(void *linux { EVRInputError _ret; InputPoseActionData_t lin; - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1418_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetPoseActionDataForNextFrame((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1418_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -100,11 +100,11 @@ EVRInputError cppIVRInput_IVRInput_006_GetSkeletalActionData(void *linux_side, V { EVRInputError _ret; InputSkeletalActionData_t lin; - if(pActionData) + if (pActionData) struct_InputSkeletalActionData_t_1418_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize); - if(pActionData) + if (pActionData) struct_InputSkeletalActionData_t_1418_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_007.cpp b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_007.cpp index aba9cd3d..56971753 100644 --- a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_007.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_007.cpp @@ -48,11 +48,11 @@ EVRInputError cppIVRInput_IVRInput_007_GetDigitalActionData(void *linux_side, VR { EVRInputError _ret; InputDigitalActionData_t lin; - if(pActionData) + if (pActionData) struct_InputDigitalActionData_t_1916_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputDigitalActionData_t_1916_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -61,11 +61,11 @@ EVRInputError cppIVRInput_IVRInput_007_GetAnalogActionData(void *linux_side, VRA { EVRInputError _ret; InputAnalogActionData_t lin; - if(pActionData) + if (pActionData) struct_InputAnalogActionData_t_1916_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputAnalogActionData_t_1916_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -74,11 +74,11 @@ EVRInputError cppIVRInput_IVRInput_007_GetPoseActionDataRelativeToNow(void *linu { EVRInputError _ret; InputPoseActionData_t lin; - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1916_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetPoseActionDataRelativeToNow((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1916_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -87,11 +87,11 @@ EVRInputError cppIVRInput_IVRInput_007_GetPoseActionDataForNextFrame(void *linux { EVRInputError _ret; InputPoseActionData_t lin; - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1916_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetPoseActionDataForNextFrame((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1916_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -100,11 +100,11 @@ EVRInputError cppIVRInput_IVRInput_007_GetSkeletalActionData(void *linux_side, V { EVRInputError _ret; InputSkeletalActionData_t lin; - if(pActionData) + if (pActionData) struct_InputSkeletalActionData_t_1916_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize); - if(pActionData) + if (pActionData) struct_InputSkeletalActionData_t_1916_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_010.cpp b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_010.cpp index 52dc127c..3cef820c 100644 --- a/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_010.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRInput_IVRInput_010.cpp @@ -48,11 +48,11 @@ EVRInputError cppIVRInput_IVRInput_010_GetDigitalActionData(void *linux_side, VR { EVRInputError _ret; InputDigitalActionData_t lin; - if(pActionData) + if (pActionData) struct_InputDigitalActionData_t_1267_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputDigitalActionData_t_1267_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -61,11 +61,11 @@ EVRInputError cppIVRInput_IVRInput_010_GetAnalogActionData(void *linux_side, VRA { EVRInputError _ret; InputAnalogActionData_t lin; - if(pActionData) + if (pActionData) struct_InputAnalogActionData_t_1267_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputAnalogActionData_t_1267_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -74,11 +74,11 @@ EVRInputError cppIVRInput_IVRInput_010_GetPoseActionDataRelativeToNow(void *linu { EVRInputError _ret; InputPoseActionData_t lin; - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1267_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetPoseActionDataRelativeToNow((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, (float)fPredictedSecondsFromNow, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1267_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -87,11 +87,11 @@ EVRInputError cppIVRInput_IVRInput_010_GetPoseActionDataForNextFrame(void *linux { EVRInputError _ret; InputPoseActionData_t lin; - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1267_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetPoseActionDataForNextFrame((vr::VRActionHandle_t)action, (vr::ETrackingUniverseOrigin)eOrigin, pActionData ? &lin : nullptr, lin_unActionDataSize, (vr::VRInputValueHandle_t)ulRestrictToDevice); - if(pActionData) + if (pActionData) struct_InputPoseActionData_t_1267_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } @@ -100,11 +100,11 @@ EVRInputError cppIVRInput_IVRInput_010_GetSkeletalActionData(void *linux_side, V { EVRInputError _ret; InputSkeletalActionData_t lin; - if(pActionData) + if (pActionData) struct_InputSkeletalActionData_t_1267_win_to_lin(pActionData, &lin); uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; _ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize); - if(pActionData) + if (pActionData) struct_InputSkeletalActionData_t_1267_lin_to_win(&lin, pActionData, unActionDataSize); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlayView_IVROverlayView_003.cpp b/vrclient_x64/vrclient_x64/cppIVROverlayView_IVROverlayView_003.cpp index ca9ca29b..c6ed9dc0 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlayView_IVROverlayView_003.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlayView_IVROverlayView_003.cpp @@ -26,7 +26,7 @@ EVROverlayError cppIVROverlayView_IVROverlayView_003_ReleaseOverlayView(void *li void cppIVROverlayView_IVROverlayView_003_PostOverlayEvent(void *linux_side, VROverlayHandle_t ulOverlayHandle, const VREvent_t *pvrEvent) { VREvent_t lin; - if(pvrEvent) + if (pvrEvent) struct_VREvent_t_1267_win_to_lin(pvrEvent, &lin); ((IVROverlayView*)linux_side)->PostOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pvrEvent ? &lin : nullptr); } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_010.cpp b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_010.cpp index 7809b068..66d8a7b9 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_010.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_010.cpp @@ -251,11 +251,11 @@ bool cppIVROverlay_IVROverlay_010_PollNextOverlayEvent(void *linux_side, VROverl { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_0918_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_0918_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_011.cpp b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_011.cpp index 1c126ca4..f1133863 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_011.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_011.cpp @@ -265,11 +265,11 @@ bool cppIVROverlay_IVROverlay_011_PollNextOverlayEvent(void *linux_side, VROverl { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_0920_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_0920_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_012.cpp b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_012.cpp index 786a27e3..1a546aa4 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_012.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_012.cpp @@ -265,11 +265,11 @@ bool cppIVROverlay_IVROverlay_012_PollNextOverlayEvent(void *linux_side, VROverl { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_101_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_101_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_013.cpp b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_013.cpp index 041118a4..7aa0cd94 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_013.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_013.cpp @@ -293,11 +293,11 @@ bool cppIVROverlay_IVROverlay_013_PollNextOverlayEvent(void *linux_side, VROverl { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_104_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_104_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_014.cpp b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_014.cpp index 54e69468..25a3d09f 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_014.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_014.cpp @@ -293,11 +293,11 @@ bool cppIVROverlay_IVROverlay_014_PollNextOverlayEvent(void *linux_side, VROverl { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_106_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_106_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_016.cpp b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_016.cpp index d4739018..97a3d75f 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_016.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_016.cpp @@ -328,11 +328,11 @@ bool cppIVROverlay_IVROverlay_016_PollNextOverlayEvent(void *linux_side, VROverl { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1010_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_1010_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_017.cpp b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_017.cpp index 7838a882..4d91239a 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_017.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_017.cpp @@ -328,11 +328,11 @@ bool cppIVROverlay_IVROverlay_017_PollNextOverlayEvent(void *linux_side, VROverl { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1011_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_1011_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_018.cpp b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_018.cpp index 4f522fb9..f33c65b8 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_018.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_018.cpp @@ -328,11 +328,11 @@ bool cppIVROverlay_IVROverlay_018_PollNextOverlayEvent(void *linux_side, VROverl { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1017_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_1017_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_019.cpp b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_019.cpp index 21a60258..4c5cc91d 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_019.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_019.cpp @@ -328,11 +328,11 @@ bool cppIVROverlay_IVROverlay_019_PollNextOverlayEvent(void *linux_side, VROverl { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1610_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_1610_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_020.cpp b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_020.cpp index 6f2ca466..403980ce 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_020.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_020.cpp @@ -314,11 +314,11 @@ bool cppIVROverlay_IVROverlay_020_PollNextOverlayEvent(void *linux_side, VROverl { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1715_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_1715_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_021.cpp b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_021.cpp index 0b25999a..e7be62f2 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_021.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_021.cpp @@ -314,11 +314,11 @@ bool cppIVROverlay_IVROverlay_021_PollNextOverlayEvent(void *linux_side, VROverl { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1819_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_1819_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_022.cpp b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_022.cpp index 1691e7a3..0665daa3 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_022.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_022.cpp @@ -335,11 +335,11 @@ bool cppIVROverlay_IVROverlay_022_PollNextOverlayEvent(void *linux_side, VROverl { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1916_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_1916_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_024.cpp b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_024.cpp index 5acf4346..b13cb7b4 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_024.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_024.cpp @@ -321,11 +321,11 @@ bool cppIVROverlay_IVROverlay_024_PollNextOverlayEvent(void *linux_side, VROverl { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_11415_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_11415_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_025.cpp b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_025.cpp index d00125db..e0a05ffd 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_025.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_025.cpp @@ -328,11 +328,11 @@ bool cppIVROverlay_IVROverlay_025_PollNextOverlayEvent(void *linux_side, VROverl { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1168_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_1168_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_026.cpp b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_026.cpp index e8eb788b..cca1432c 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_026.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_026.cpp @@ -349,11 +349,11 @@ bool cppIVROverlay_IVROverlay_026_PollNextOverlayEvent(void *linux_side, VROverl { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1237_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_1237_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_027.cpp b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_027.cpp index 8dfd63a8..ea677ef5 100644 --- a/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_027.cpp +++ b/vrclient_x64/vrclient_x64/cppIVROverlay_IVROverlay_027.cpp @@ -335,11 +335,11 @@ bool cppIVROverlay_IVROverlay_027_PollNextOverlayEvent(void *linux_side, VROverl { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1267_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_1267_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRRenderModels_IVRRenderModels_002.cpp b/vrclient_x64/vrclient_x64/cppIVRRenderModels_IVRRenderModels_002.cpp index 11212fba..250be228 100644 --- a/vrclient_x64/vrclient_x64/cppIVRRenderModels_IVRRenderModels_002.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRRenderModels_IVRRenderModels_002.cpp @@ -14,7 +14,7 @@ bool cppIVRRenderModels_IVRRenderModels_002_LoadRenderModel(void *linux_side, co bool _ret; RenderModel_t *lin; _ret = ((IVRRenderModels*)linux_side)->LoadRenderModel((const char *)pchRenderModelName, ppRenderModel ? &lin : nullptr); - if(_ret == 0) + if (_ret == 0) *ppRenderModel = struct_RenderModel_t_0915_wrap(lin); return _ret; } @@ -29,7 +29,7 @@ bool cppIVRRenderModels_IVRRenderModels_002_LoadTexture(void *linux_side, Textur bool _ret; RenderModel_TextureMap_t *lin; _ret = ((IVRRenderModels*)linux_side)->LoadTexture((vr::TextureID_t)textureId, ppTexture ? &lin : nullptr); - if(_ret == 0) + if (_ret == 0) *ppTexture = struct_RenderModel_TextureMap_t_0915_wrap(lin); return _ret; } @@ -85,7 +85,7 @@ bool cppIVRRenderModels_IVRRenderModels_002_GetComponentState(void *linux_side, { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_0915_win_to_lin(pControllerState, &lin); _ret = ((IVRRenderModels*)linux_side)->GetComponentState((const char *)pchRenderModelName, (const char *)pchComponentName, pControllerState ? &lin : nullptr, (vr::RenderModel_ComponentState_t *)pComponentState); return _ret; diff --git a/vrclient_x64/vrclient_x64/cppIVRRenderModels_IVRRenderModels_004.cpp b/vrclient_x64/vrclient_x64/cppIVRRenderModels_IVRRenderModels_004.cpp index 2bd4e886..ebcb4233 100644 --- a/vrclient_x64/vrclient_x64/cppIVRRenderModels_IVRRenderModels_004.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRRenderModels_IVRRenderModels_004.cpp @@ -14,7 +14,7 @@ EVRRenderModelError cppIVRRenderModels_IVRRenderModels_004_LoadRenderModel_Async EVRRenderModelError _ret; RenderModel_t *lin; _ret = ((IVRRenderModels*)linux_side)->LoadRenderModel_Async((const char *)pchRenderModelName, ppRenderModel ? &lin : nullptr); - if(_ret == 0) + if (_ret == 0) *ppRenderModel = struct_RenderModel_t_0918_wrap(lin); return _ret; } @@ -29,7 +29,7 @@ EVRRenderModelError cppIVRRenderModels_IVRRenderModels_004_LoadTexture_Async(voi EVRRenderModelError _ret; RenderModel_TextureMap_t *lin; _ret = ((IVRRenderModels*)linux_side)->LoadTexture_Async((vr::TextureID_t)textureId, ppTexture ? &lin : nullptr); - if(_ret == 0) + if (_ret == 0) *ppTexture = struct_RenderModel_TextureMap_t_0918_wrap(lin); return _ret; } @@ -97,7 +97,7 @@ bool cppIVRRenderModels_IVRRenderModels_004_GetComponentState(void *linux_side, { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_0918_win_to_lin(pControllerState, &lin); _ret = ((IVRRenderModels*)linux_side)->GetComponentState((const char *)pchRenderModelName, (const char *)pchComponentName, pControllerState ? &lin : nullptr, (const vr::RenderModel_ControllerMode_State_t *)pState, (vr::RenderModel_ComponentState_t *)pComponentState); return _ret; diff --git a/vrclient_x64/vrclient_x64/cppIVRRenderModels_IVRRenderModels_005.cpp b/vrclient_x64/vrclient_x64/cppIVRRenderModels_IVRRenderModels_005.cpp index 30c273e3..a9f39ef1 100644 --- a/vrclient_x64/vrclient_x64/cppIVRRenderModels_IVRRenderModels_005.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRRenderModels_IVRRenderModels_005.cpp @@ -14,7 +14,7 @@ EVRRenderModelError cppIVRRenderModels_IVRRenderModels_005_LoadRenderModel_Async EVRRenderModelError _ret; RenderModel_t *lin; _ret = ((IVRRenderModels*)linux_side)->LoadRenderModel_Async((const char *)pchRenderModelName, ppRenderModel ? &lin : nullptr); - if(_ret == 0) + if (_ret == 0) *ppRenderModel = struct_RenderModel_t_1015_wrap(lin); return _ret; } @@ -29,7 +29,7 @@ EVRRenderModelError cppIVRRenderModels_IVRRenderModels_005_LoadTexture_Async(voi EVRRenderModelError _ret; RenderModel_TextureMap_t *lin; _ret = ((IVRRenderModels*)linux_side)->LoadTexture_Async((vr::TextureID_t)textureId, ppTexture ? &lin : nullptr); - if(_ret == 0) + if (_ret == 0) *ppTexture = struct_RenderModel_TextureMap_t_1015_wrap(lin); return _ret; } @@ -104,7 +104,7 @@ bool cppIVRRenderModels_IVRRenderModels_005_GetComponentState(void *linux_side, { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1015_win_to_lin(pControllerState, &lin); _ret = ((IVRRenderModels*)linux_side)->GetComponentState((const char *)pchRenderModelName, (const char *)pchComponentName, pControllerState ? &lin : nullptr, (const vr::RenderModel_ControllerMode_State_t *)pState, (vr::RenderModel_ComponentState_t *)pComponentState); return _ret; diff --git a/vrclient_x64/vrclient_x64/cppIVRRenderModels_IVRRenderModels_006.cpp b/vrclient_x64/vrclient_x64/cppIVRRenderModels_IVRRenderModels_006.cpp index 47d81ddf..73e74e28 100644 --- a/vrclient_x64/vrclient_x64/cppIVRRenderModels_IVRRenderModels_006.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRRenderModels_IVRRenderModels_006.cpp @@ -14,7 +14,7 @@ EVRRenderModelError cppIVRRenderModels_IVRRenderModels_006_LoadRenderModel_Async EVRRenderModelError _ret; RenderModel_t *lin; _ret = ((IVRRenderModels*)linux_side)->LoadRenderModel_Async((const char *)pchRenderModelName, ppRenderModel ? &lin : nullptr); - if(_ret == 0) + if (_ret == 0) *ppRenderModel = struct_RenderModel_t_1267_wrap(lin); return _ret; } @@ -29,7 +29,7 @@ EVRRenderModelError cppIVRRenderModels_IVRRenderModels_006_LoadTexture_Async(voi EVRRenderModelError _ret; RenderModel_TextureMap_t *lin; _ret = ((IVRRenderModels*)linux_side)->LoadTexture_Async((vr::TextureID_t)textureId, ppTexture ? &lin : nullptr); - if(_ret == 0) + if (_ret == 0) *ppTexture = struct_RenderModel_TextureMap_t_1267_wrap(lin); return _ret; } @@ -111,7 +111,7 @@ bool cppIVRRenderModels_IVRRenderModels_006_GetComponentState(void *linux_side, { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1267_win_to_lin(pControllerState, &lin); _ret = ((IVRRenderModels*)linux_side)->GetComponentState((const char *)pchRenderModelName, (const char *)pchComponentName, pControllerState ? &lin : nullptr, (const vr::RenderModel_ControllerMode_State_t *)pState, (vr::RenderModel_ComponentState_t *)pComponentState); return _ret; diff --git a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_003.cpp b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_003.cpp index d19ea1f2..07b2e893 100644 --- a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_003.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_003.cpp @@ -200,10 +200,10 @@ bool cppIVRSystem_IVRSystem_003_GetControllerState(void *linux_side, TrackedDevi { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_091_win_to_lin(pControllerState, &lin); _ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_091_lin_to_win(&lin, pControllerState, -1); return _ret; } @@ -212,10 +212,10 @@ bool cppIVRSystem_IVRSystem_003_GetControllerStateWithPose(void *linux_side, Tra { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) 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) + if (pControllerState) struct_VRControllerState001_t_091_lin_to_win(&lin, pControllerState, -1); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_004.cpp b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_004.cpp index 79ea2b52..383df1a3 100644 --- a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_004.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_004.cpp @@ -188,10 +188,10 @@ bool cppIVRSystem_IVRSystem_004_GetControllerState(void *linux_side, TrackedDevi { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_092_win_to_lin(pControllerState, &lin); _ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_092_lin_to_win(&lin, pControllerState, -1); return _ret; } @@ -200,10 +200,10 @@ bool cppIVRSystem_IVRSystem_004_GetControllerStateWithPose(void *linux_side, Tra { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) 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) + if (pControllerState) struct_VRControllerState001_t_092_lin_to_win(&lin, pControllerState, -1); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_005.cpp b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_005.cpp index 084956c7..bc19852a 100644 --- a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_005.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_005.cpp @@ -195,10 +195,10 @@ bool cppIVRSystem_IVRSystem_005_GetControllerState(void *linux_side, TrackedDevi { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_098_win_to_lin(pControllerState, &lin); _ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_098_lin_to_win(&lin, pControllerState, -1); return _ret; } @@ -207,10 +207,10 @@ bool cppIVRSystem_IVRSystem_005_GetControllerStateWithPose(void *linux_side, Tra { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) 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) + if (pControllerState) struct_VRControllerState001_t_098_lin_to_win(&lin, pControllerState, -1); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_006.cpp b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_006.cpp index e6d56264..5617266a 100644 --- a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_006.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_006.cpp @@ -209,10 +209,10 @@ bool cppIVRSystem_IVRSystem_006_GetControllerState(void *linux_side, TrackedDevi { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_0910_win_to_lin(pControllerState, &lin); _ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_0910_lin_to_win(&lin, pControllerState, -1); return _ret; } @@ -221,10 +221,10 @@ bool cppIVRSystem_IVRSystem_006_GetControllerStateWithPose(void *linux_side, Tra { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) 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) + if (pControllerState) struct_VRControllerState001_t_0910_lin_to_win(&lin, pControllerState, -1); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_009.cpp b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_009.cpp index b0cb4fa3..bb7a774d 100644 --- a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_009.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_009.cpp @@ -211,10 +211,10 @@ bool cppIVRSystem_IVRSystem_009_GetControllerState(void *linux_side, TrackedDevi { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_0912_win_to_lin(pControllerState, &lin); _ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_0912_lin_to_win(&lin, pControllerState, -1); return _ret; } @@ -223,10 +223,10 @@ bool cppIVRSystem_IVRSystem_009_GetControllerStateWithPose(void *linux_side, ETr { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) 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) + if (pControllerState) struct_VRControllerState001_t_0912_lin_to_win(&lin, pControllerState, -1); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_010.cpp b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_010.cpp index 326eab09..0932bedd 100644 --- a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_010.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_010.cpp @@ -225,10 +225,10 @@ bool cppIVRSystem_IVRSystem_010_GetControllerState(void *linux_side, TrackedDevi { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_0914_win_to_lin(pControllerState, &lin); _ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_0914_lin_to_win(&lin, pControllerState, -1); return _ret; } @@ -237,10 +237,10 @@ bool cppIVRSystem_IVRSystem_010_GetControllerStateWithPose(void *linux_side, ETr { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_0914_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) + if (pControllerState) struct_VRControllerState001_t_0914_lin_to_win(&lin, pControllerState, -1); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_011.cpp b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_011.cpp index ce6d714a..84dbd7fe 100644 --- a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_011.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_011.cpp @@ -197,11 +197,11 @@ bool cppIVRSystem_IVRSystem_011_PollNextEvent(void *linux_side, winVREvent_t_091 { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_0918_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_0918_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -210,11 +210,11 @@ bool cppIVRSystem_IVRSystem_011_PollNextEventWithPose(void *linux_side, ETrackin { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_0918_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEventWithPose((vr::ETrackingUniverseOrigin)eOrigin, pEvent ? &lin : nullptr, lin_uncbVREvent, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pEvent) + if (pEvent) struct_VREvent_t_0918_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -237,10 +237,10 @@ bool cppIVRSystem_IVRSystem_011_GetControllerState(void *linux_side, TrackedDevi { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_0918_win_to_lin(pControllerState, &lin); _ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_0918_lin_to_win(&lin, pControllerState, -1); return _ret; } @@ -249,10 +249,10 @@ bool cppIVRSystem_IVRSystem_011_GetControllerStateWithPose(void *linux_side, ETr { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_0918_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) + if (pControllerState) struct_VRControllerState001_t_0918_lin_to_win(&lin, pControllerState, -1); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_012.cpp b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_012.cpp index 344614e4..5147ac42 100644 --- a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_012.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_012.cpp @@ -197,11 +197,11 @@ bool cppIVRSystem_IVRSystem_012_PollNextEvent(void *linux_side, winVREvent_t_103 { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_103_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_103_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -210,11 +210,11 @@ bool cppIVRSystem_IVRSystem_012_PollNextEventWithPose(void *linux_side, ETrackin { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_103_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEventWithPose((vr::ETrackingUniverseOrigin)eOrigin, pEvent ? &lin : nullptr, lin_uncbVREvent, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pEvent) + if (pEvent) struct_VREvent_t_103_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -237,10 +237,10 @@ bool cppIVRSystem_IVRSystem_012_GetControllerState(void *linux_side, TrackedDevi { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_103_win_to_lin(pControllerState, &lin); _ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_103_lin_to_win(&lin, pControllerState, -1); return _ret; } @@ -249,10 +249,10 @@ bool cppIVRSystem_IVRSystem_012_GetControllerStateWithPose(void *linux_side, ETr { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_103_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) + if (pControllerState) struct_VRControllerState001_t_103_lin_to_win(&lin, pControllerState, -1); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_014.cpp b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_014.cpp index 55a4962b..43aba4e1 100644 --- a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_014.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_014.cpp @@ -197,11 +197,11 @@ bool cppIVRSystem_IVRSystem_014_PollNextEvent(void *linux_side, winVREvent_t_104 { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_104_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_104_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -210,11 +210,11 @@ bool cppIVRSystem_IVRSystem_014_PollNextEventWithPose(void *linux_side, ETrackin { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_104_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEventWithPose((vr::ETrackingUniverseOrigin)eOrigin, pEvent ? &lin : nullptr, lin_uncbVREvent, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pEvent) + if (pEvent) struct_VREvent_t_104_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -237,11 +237,11 @@ bool cppIVRSystem_IVRSystem_014_GetControllerState(void *linux_side, TrackedDevi { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_104_win_to_lin(pControllerState, &lin); uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_104_lin_to_win(&lin, pControllerState, unControllerStateSize); return _ret; } @@ -250,11 +250,11 @@ bool cppIVRSystem_IVRSystem_014_GetControllerStateWithPose(void *linux_side, ETr { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_104_win_to_lin(pControllerState, &lin); uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::ETrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_104_lin_to_win(&lin, pControllerState, unControllerStateSize); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_015.cpp b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_015.cpp index 5a3ea725..15005a67 100644 --- a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_015.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_015.cpp @@ -197,11 +197,11 @@ bool cppIVRSystem_IVRSystem_015_PollNextEvent(void *linux_side, winVREvent_t_107 { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_107_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_107_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -210,11 +210,11 @@ bool cppIVRSystem_IVRSystem_015_PollNextEventWithPose(void *linux_side, ETrackin { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_107_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEventWithPose((vr::ETrackingUniverseOrigin)eOrigin, pEvent ? &lin : nullptr, lin_uncbVREvent, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pEvent) + if (pEvent) struct_VREvent_t_107_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -237,11 +237,11 @@ bool cppIVRSystem_IVRSystem_015_GetControllerState(void *linux_side, TrackedDevi { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_107_win_to_lin(pControllerState, &lin); uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_107_lin_to_win(&lin, pControllerState, unControllerStateSize); return _ret; } @@ -250,11 +250,11 @@ bool cppIVRSystem_IVRSystem_015_GetControllerStateWithPose(void *linux_side, ETr { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_107_win_to_lin(pControllerState, &lin); uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::ETrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_107_lin_to_win(&lin, pControllerState, unControllerStateSize); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_016.cpp b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_016.cpp index 888464a5..157843a7 100644 --- a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_016.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_016.cpp @@ -202,11 +202,11 @@ bool cppIVRSystem_IVRSystem_016_PollNextEvent(void *linux_side, winVREvent_t_109 { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_109_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_109_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -215,11 +215,11 @@ bool cppIVRSystem_IVRSystem_016_PollNextEventWithPose(void *linux_side, ETrackin { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_109_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEventWithPose((vr::ETrackingUniverseOrigin)eOrigin, pEvent ? &lin : nullptr, lin_uncbVREvent, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pEvent) + if (pEvent) struct_VREvent_t_109_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -242,11 +242,11 @@ bool cppIVRSystem_IVRSystem_016_GetControllerState(void *linux_side, TrackedDevi { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_109_win_to_lin(pControllerState, &lin); uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_109_lin_to_win(&lin, pControllerState, unControllerStateSize); return _ret; } @@ -255,11 +255,11 @@ bool cppIVRSystem_IVRSystem_016_GetControllerStateWithPose(void *linux_side, ETr { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_109_win_to_lin(pControllerState, &lin); uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::ETrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_109_lin_to_win(&lin, pControllerState, unControllerStateSize); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_017.cpp b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_017.cpp index f3d6fd62..be1f83c5 100644 --- a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_017.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_017.cpp @@ -202,11 +202,11 @@ bool cppIVRSystem_IVRSystem_017_PollNextEvent(void *linux_side, winVREvent_t_101 { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1011_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_1011_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -215,11 +215,11 @@ bool cppIVRSystem_IVRSystem_017_PollNextEventWithPose(void *linux_side, ETrackin { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1011_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEventWithPose((vr::ETrackingUniverseOrigin)eOrigin, pEvent ? &lin : nullptr, lin_uncbVREvent, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pEvent) + if (pEvent) struct_VREvent_t_1011_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -242,11 +242,11 @@ bool cppIVRSystem_IVRSystem_017_GetControllerState(void *linux_side, TrackedDevi { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1011_win_to_lin(pControllerState, &lin); uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1011_lin_to_win(&lin, pControllerState, unControllerStateSize); return _ret; } @@ -255,11 +255,11 @@ bool cppIVRSystem_IVRSystem_017_GetControllerStateWithPose(void *linux_side, ETr { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1011_win_to_lin(pControllerState, &lin); uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::ETrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1011_lin_to_win(&lin, pControllerState, unControllerStateSize); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_019.cpp b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_019.cpp index b749eba8..b68fb129 100644 --- a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_019.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_019.cpp @@ -209,11 +209,11 @@ bool cppIVRSystem_IVRSystem_019_PollNextEvent(void *linux_side, winVREvent_t_141 { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1418_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_1418_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -222,11 +222,11 @@ bool cppIVRSystem_IVRSystem_019_PollNextEventWithPose(void *linux_side, ETrackin { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1418_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEventWithPose((vr::ETrackingUniverseOrigin)eOrigin, pEvent ? &lin : nullptr, lin_uncbVREvent, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pEvent) + if (pEvent) struct_VREvent_t_1418_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -249,11 +249,11 @@ bool cppIVRSystem_IVRSystem_019_GetControllerState(void *linux_side, TrackedDevi { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1418_win_to_lin(pControllerState, &lin); uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1418_lin_to_win(&lin, pControllerState, unControllerStateSize); return _ret; } @@ -262,11 +262,11 @@ bool cppIVRSystem_IVRSystem_019_GetControllerStateWithPose(void *linux_side, ETr { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1418_win_to_lin(pControllerState, &lin); uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::ETrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1418_lin_to_win(&lin, pControllerState, unControllerStateSize); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_020.cpp b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_020.cpp index 648078f9..6b476031 100644 --- a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_020.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_020.cpp @@ -209,11 +209,11 @@ bool cppIVRSystem_IVRSystem_020_PollNextEvent(void *linux_side, winVREvent_t_171 { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1715_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_1715_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -222,11 +222,11 @@ bool cppIVRSystem_IVRSystem_020_PollNextEventWithPose(void *linux_side, ETrackin { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1715_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEventWithPose((vr::ETrackingUniverseOrigin)eOrigin, pEvent ? &lin : nullptr, lin_uncbVREvent, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pEvent) + if (pEvent) struct_VREvent_t_1715_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -249,11 +249,11 @@ bool cppIVRSystem_IVRSystem_020_GetControllerState(void *linux_side, TrackedDevi { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1715_win_to_lin(pControllerState, &lin); uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1715_lin_to_win(&lin, pControllerState, unControllerStateSize); return _ret; } @@ -262,11 +262,11 @@ bool cppIVRSystem_IVRSystem_020_GetControllerStateWithPose(void *linux_side, ETr { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1715_win_to_lin(pControllerState, &lin); uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::ETrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1715_lin_to_win(&lin, pControllerState, unControllerStateSize); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_021.cpp b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_021.cpp index 621b707b..7a6efa25 100644 --- a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_021.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_021.cpp @@ -209,11 +209,11 @@ bool cppIVRSystem_IVRSystem_021_PollNextEvent(void *linux_side, winVREvent_t_112 { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1125_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_1125_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -222,11 +222,11 @@ bool cppIVRSystem_IVRSystem_021_PollNextEventWithPose(void *linux_side, ETrackin { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1125_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEventWithPose((vr::ETrackingUniverseOrigin)eOrigin, pEvent ? &lin : nullptr, lin_uncbVREvent, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pEvent) + if (pEvent) struct_VREvent_t_1125_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -249,11 +249,11 @@ bool cppIVRSystem_IVRSystem_021_GetControllerState(void *linux_side, TrackedDevi { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1125_win_to_lin(pControllerState, &lin); uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1125_lin_to_win(&lin, pControllerState, unControllerStateSize); return _ret; } @@ -262,11 +262,11 @@ bool cppIVRSystem_IVRSystem_021_GetControllerStateWithPose(void *linux_side, ETr { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1125_win_to_lin(pControllerState, &lin); uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::ETrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1125_lin_to_win(&lin, pControllerState, unControllerStateSize); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_022.cpp b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_022.cpp index e96301c4..fb45324e 100644 --- a/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_022.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_022.cpp @@ -204,11 +204,11 @@ bool cppIVRSystem_IVRSystem_022_PollNextEvent(void *linux_side, winVREvent_t_126 { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1267_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); - if(pEvent) + if (pEvent) struct_VREvent_t_1267_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -217,11 +217,11 @@ bool cppIVRSystem_IVRSystem_022_PollNextEventWithPose(void *linux_side, ETrackin { bool _ret; VREvent_t lin; - if(pEvent) + if (pEvent) struct_VREvent_t_1267_win_to_lin(pEvent, &lin); uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->PollNextEventWithPose((vr::ETrackingUniverseOrigin)eOrigin, pEvent ? &lin : nullptr, lin_uncbVREvent, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pEvent) + if (pEvent) struct_VREvent_t_1267_lin_to_win(&lin, pEvent, uncbVREvent); return _ret; } @@ -244,11 +244,11 @@ bool cppIVRSystem_IVRSystem_022_GetControllerState(void *linux_side, TrackedDevi { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1267_win_to_lin(pControllerState, &lin); uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1267_lin_to_win(&lin, pControllerState, unControllerStateSize); return _ret; } @@ -257,11 +257,11 @@ bool cppIVRSystem_IVRSystem_022_GetControllerStateWithPose(void *linux_side, ETr { bool _ret; VRControllerState001_t lin; - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1267_win_to_lin(pControllerState, &lin); uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; _ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::ETrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize, (vr::TrackedDevicePose_t *)pTrackedDevicePose); - if(pControllerState) + if (pControllerState) struct_VRControllerState001_t_1267_lin_to_win(&lin, pControllerState, unControllerStateSize); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_001.cpp b/vrclient_x64/vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_001.cpp index 21579013..4ec4e85d 100644 --- a/vrclient_x64/vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_001.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_001.cpp @@ -90,7 +90,7 @@ bool cppIVRTrackedCamera_IVRTrackedCamera_001_ReleaseVideoStreamFrame(void *linu { bool _ret; CameraVideoStreamFrame_t lin; - if(pFrameImage) + if (pFrameImage) struct_CameraVideoStreamFrame_t_0914_win_to_lin(pFrameImage, &lin); _ret = ((IVRTrackedCamera*)linux_side)->ReleaseVideoStreamFrame((vr::TrackedDeviceIndex_t)nDeviceIndex, pFrameImage ? &lin : nullptr); return _ret; diff --git a/vrclient_x64/vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_004.cpp b/vrclient_x64/vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_004.cpp index 1f615f1b..4cfaf174 100644 --- a/vrclient_x64/vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_004.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_004.cpp @@ -62,11 +62,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_004_GetVideoStreamFra { EVRTrackedCameraError _ret; CameraVideoStreamFrameHeader_t lin; - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1017_win_to_lin(pFrameHeader, &lin); uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; _ret = ((IVRTrackedCamera*)linux_side)->GetVideoStreamFrameBuffer((vr::TrackedCameraHandle_t)hTrackedCamera, (vr::EVRTrackedCameraFrameType)eFrameType, (void *)pFrameBuffer, (uint32_t)nFrameBufferSize, pFrameHeader ? &lin : nullptr, lin_nFrameHeaderSize); - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1017_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize); return _ret; } @@ -82,11 +82,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_004_GetVideoStreamTex { EVRTrackedCameraError _ret; CameraVideoStreamFrameHeader_t lin; - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1017_win_to_lin(pFrameHeader, &lin); uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; _ret = ((IVRTrackedCamera*)linux_side)->GetVideoStreamTextureD3D11((vr::TrackedCameraHandle_t)hTrackedCamera, (vr::EVRTrackedCameraFrameType)eFrameType, (void *)pD3D11DeviceOrResource, (void **)ppD3D11ShaderResourceView, pFrameHeader ? &lin : nullptr, lin_nFrameHeaderSize); - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1017_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize); return _ret; } @@ -95,11 +95,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_004_GetVideoStreamTex { EVRTrackedCameraError _ret; CameraVideoStreamFrameHeader_t lin; - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1017_win_to_lin(pFrameHeader, &lin); uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; _ret = ((IVRTrackedCamera*)linux_side)->GetVideoStreamTextureGL((vr::TrackedCameraHandle_t)hTrackedCamera, (vr::EVRTrackedCameraFrameType)eFrameType, (vr::glUInt_t *)pglTextureId, pFrameHeader ? &lin : nullptr, lin_nFrameHeaderSize); - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1017_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_005.cpp b/vrclient_x64/vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_005.cpp index 38cada9c..f6875959 100644 --- a/vrclient_x64/vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_005.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_005.cpp @@ -62,11 +62,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamFra { EVRTrackedCameraError _ret; CameraVideoStreamFrameHeader_t lin; - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1610_win_to_lin(pFrameHeader, &lin); uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; _ret = ((IVRTrackedCamera*)linux_side)->GetVideoStreamFrameBuffer((vr::TrackedCameraHandle_t)hTrackedCamera, (vr::EVRTrackedCameraFrameType)eFrameType, (void *)pFrameBuffer, (uint32_t)nFrameBufferSize, pFrameHeader ? &lin : nullptr, lin_nFrameHeaderSize); - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1610_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize); return _ret; } @@ -82,11 +82,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamTex { EVRTrackedCameraError _ret; CameraVideoStreamFrameHeader_t lin; - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1610_win_to_lin(pFrameHeader, &lin); uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; _ret = ((IVRTrackedCamera*)linux_side)->GetVideoStreamTextureD3D11((vr::TrackedCameraHandle_t)hTrackedCamera, (vr::EVRTrackedCameraFrameType)eFrameType, (void *)pD3D11DeviceOrResource, (void **)ppD3D11ShaderResourceView, pFrameHeader ? &lin : nullptr, lin_nFrameHeaderSize); - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1610_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize); return _ret; } @@ -95,11 +95,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamTex { EVRTrackedCameraError _ret; CameraVideoStreamFrameHeader_t lin; - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1610_win_to_lin(pFrameHeader, &lin); uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; _ret = ((IVRTrackedCamera*)linux_side)->GetVideoStreamTextureGL((vr::TrackedCameraHandle_t)hTrackedCamera, (vr::EVRTrackedCameraFrameType)eFrameType, (vr::glUInt_t *)pglTextureId, pFrameHeader ? &lin : nullptr, lin_nFrameHeaderSize); - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1610_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize); return _ret; } diff --git a/vrclient_x64/vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_006.cpp b/vrclient_x64/vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_006.cpp index 12df86a3..2a4e4fb3 100644 --- a/vrclient_x64/vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_006.cpp +++ b/vrclient_x64/vrclient_x64/cppIVRTrackedCamera_IVRTrackedCamera_006.cpp @@ -62,11 +62,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_006_GetVideoStreamFra { EVRTrackedCameraError _ret; CameraVideoStreamFrameHeader_t lin; - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1267_win_to_lin(pFrameHeader, &lin); uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; _ret = ((IVRTrackedCamera*)linux_side)->GetVideoStreamFrameBuffer((vr::TrackedCameraHandle_t)hTrackedCamera, (vr::EVRTrackedCameraFrameType)eFrameType, (void *)pFrameBuffer, (uint32_t)nFrameBufferSize, pFrameHeader ? &lin : nullptr, lin_nFrameHeaderSize); - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1267_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize); return _ret; } @@ -82,11 +82,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_006_GetVideoStreamTex { EVRTrackedCameraError _ret; CameraVideoStreamFrameHeader_t lin; - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1267_win_to_lin(pFrameHeader, &lin); uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; _ret = ((IVRTrackedCamera*)linux_side)->GetVideoStreamTextureD3D11((vr::TrackedCameraHandle_t)hTrackedCamera, (vr::EVRTrackedCameraFrameType)eFrameType, (void *)pD3D11DeviceOrResource, (void **)ppD3D11ShaderResourceView, pFrameHeader ? &lin : nullptr, lin_nFrameHeaderSize); - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1267_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize); return _ret; } @@ -95,11 +95,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_006_GetVideoStreamTex { EVRTrackedCameraError _ret; CameraVideoStreamFrameHeader_t lin; - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1267_win_to_lin(pFrameHeader, &lin); uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; _ret = ((IVRTrackedCamera*)linux_side)->GetVideoStreamTextureGL((vr::TrackedCameraHandle_t)hTrackedCamera, (vr::EVRTrackedCameraFrameType)eFrameType, (vr::glUInt_t *)pglTextureId, pFrameHeader ? &lin : nullptr, lin_nFrameHeaderSize); - if(pFrameHeader) + if (pFrameHeader) struct_CameraVideoStreamFrameHeader_t_1267_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize); return _ret; }