vrclient: Pass write function as parameter to handle_method*.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon 2023-09-27 15:18:31 +02:00 committed by Arkadiusz Hiler
parent 9130b93597
commit 37853f8469
55 changed files with 290 additions and 290 deletions

View File

@ -525,16 +525,16 @@ def declspec(decl, name):
return f'{const}{typename}{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, "")} ' ret = f'{declspec(method.result_type, "")} '
params = [declspec(p, "") for p in method.get_arguments()] params = [declspec(p, "") for p in method.get_arguments()]
params = ['void *'] + params 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 returns_void = method.result_type.kind == TypeKind.VOID
ret = f'{declspec(method.result_type, "")} ' ret = f'{declspec(method.result_type, "")} '
@ -546,11 +546,11 @@ def handle_method_cpp(method, classname, cppname, cpp):
names = ['linux_side'] + names names = ['linux_side'] + names
params = ['void *linux_side'] + params params = ['void *linux_side'] + params
cpp.write(f'{ret}{cppname}_{method.name}({", ".join(params)})\n') out(f'{ret}{cppname}_{method.name}({", ".join(params)})\n')
cpp.write("{\n") out(u'{\n')
if not returns_void: 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_lin_to_win = None
do_win_to_lin = 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 or do_win_to_lin:
if do_lin_to_win: 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: else:
cpp.write(" %s lin;\n" % do_win_to_lin[0]) out(f' {do_win_to_lin[0]} lin;\n')
if do_wrap: if do_wrap:
cpp.write(" %s *lin;\n" % do_wrap[0]) out(f' {do_wrap[0]} *lin;\n')
if do_win_to_lin: if do_win_to_lin:
#XXX we should pass the struct size here #XXX we should pass the struct size here
cpp.write(" if(%s)\n" % do_win_to_lin[1]) out(f' if ({do_win_to_lin[1]})\n')
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' struct_{strip_ns(do_win_to_lin[0])}_{display_sdkver(sdkver)}_win_to_lin({do_win_to_lin[1]}, &lin);\n')
size_fixup = {} size_fixup = {}
@ -607,19 +607,19 @@ def handle_method_cpp(method, classname, cppname, cpp):
convert_size_param = ', -1' convert_size_param = ', -1'
elif struct_needs_size_adjustment(real_type.get_canonical()): elif struct_needs_size_adjustment(real_type.get_canonical()):
real_name = real_type.spelling 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}' convert_size_param = f', {next_name}'
size_fixup[next_name] = True size_fixup[next_name] = True
elif do_win_to_lin and do_win_to_lin[1] == name: 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 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}' convert_size_param = f', {next_name}'
size_fixup[next_name] = True size_fixup[next_name] = True
if returns_void: if returns_void:
cpp.write(" ") out(u' ')
else: else:
cpp.write(" _ret = ") out(u' _ret = ')
params = [] params = []
for name, param in zip(names[1:], method.get_arguments()): for name, param in zip(names[1:], method.get_arguments()):
@ -636,21 +636,21 @@ def handle_method_cpp(method, classname, cppname, cpp):
else: else:
params.append("(%s)%s" % (param.type.spelling, name)) 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: if do_lin_to_win:
cpp.write(" if(%s)\n" % do_lin_to_win[1]) out(f' if ({do_lin_to_win[1]})\n')
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' 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: if do_wrap and not returns_void:
cpp.write(" if(_ret == 0)\n") out(u' 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(f' *{do_wrap[1]} = struct_{strip_ns(do_wrap[0])}_{display_sdkver(sdkver)}_wrap(lin);\n')
if not returns_void: if not returns_void:
cpp.write(u' return _ret;\n') out(u' return _ret;\n')
cpp.write("}\n\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 returns_record = method.result_type.get_canonical().kind == TypeKind.RECORD
def param_stack_size(param): def param_stack_size(param):
@ -661,10 +661,10 @@ def handle_thiscall_wrapper(klass, method, cfile):
if returns_record: size += 4 if returns_record: size += 4
name = f'win{klass.spelling}_{klass.version}_{method.name}' 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_void = method.result_type.kind == TypeKind.VOID
returns_record = method.result_type.get_canonical().kind == TypeKind.RECORD 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 params = [f'{winclassname} *_this'] + params
names = ['_this'] + names names = ['_this'] + names
cfile.write(f'{ret}__thiscall {winclassname}_{method.name}({", ".join(params)})\n') out(f'{ret}__thiscall {winclassname}_{method.name}({", ".join(params)})\n')
cfile.write("{\n") out(u'{\n')
if returns_record: if returns_record:
del params[1] del params[1]
del names[1] del names[1]
if not returns_record and not returns_void: 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) path_conv = get_path_converter(method)
if path_conv: if path_conv:
for i in range(len(path_conv["w2l_names"])): for i in range(len(path_conv["w2l_names"])):
if path_conv["w2l_arrays"][i]: 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 # TODO
pass pass
else: else:
cfile.write(" char lin_%s[PATH_MAX];\n" % path_conv["w2l_names"][i]) out(f' char lin_{path_conv["w2l_names"][i]}[PATH_MAX];\n')
cfile.write(" vrclient_dos_path_to_unix_path(%s, lin_%s);\n" % (path_conv["w2l_names"][i], path_conv["w2l_names"][i])) 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: if returns_record:
cfile.write(u' *_ret = ') out(u' *_ret = ')
elif not returns_void: elif not returns_void:
cfile.write(u' _ret = ') out(u' _ret = ')
else: else:
cfile.write(u' ') out(u' ')
should_gen_wrapper = strip_ns(method.result_type.spelling).startswith("IVR") should_gen_wrapper = strip_ns(method.result_type.spelling).startswith("IVR")
if should_gen_wrapper: if should_gen_wrapper:
cfile.write("create_win_interface(pchNameAndVersion,\n ") out(u'create_win_interface(pchNameAndVersion,\n ')
is_method_overridden = False is_method_overridden = False
for classname_pattern, methodname, override_generator in method_overrides: for classname_pattern, methodname, override_generator in method_overrides:
if method.name == methodname and classname_pattern in classname: if method.name == methodname and classname_pattern in classname:
fn_name = override_generator(cppname, method) fn_name = override_generator(cppname, method)
if fn_name: 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 is_method_overridden = True
break break
else: else:
cfile.write("%s_%s(" % (cppname, method.name)) out(f'{cppname}_{method.name}(')
def param_call(param, name): def param_call(param, name):
if name == '_this': return '_this->linux_side' if name == '_this': return '_this->linux_side'
@ -734,36 +734,36 @@ def handle_method_c(method, classname, winclassname, cppname, iface_version, cfi
return name return name
params = ['_this'] + list(method.get_arguments()) 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: if should_gen_wrapper:
cfile.write(")") out(u')')
if should_gen_wrapper: if should_gen_wrapper:
cfile.write(")") out(u')')
if is_method_overridden: 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: for classname_pattern, user_data_type, _ in method_overrides_data:
if classname_pattern in classname: if classname_pattern in classname:
cfile.write(", &_this->user_data") out(u', &_this->user_data')
break break
cfile.write(");\n") out(u');\n')
if path_conv and len(path_conv["l2w_names"]) > 0: if path_conv and len(path_conv["l2w_names"]) > 0:
for i in range(len(path_conv["l2w_names"])): 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. 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"]: if path_conv["return_is_size"]:
cfile.write("_ret = ") out(u'_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(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: if path_conv:
for i in range(len(path_conv["w2l_names"])): for i in range(len(path_conv["w2l_names"])):
if path_conv["w2l_arrays"][i]: 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: if not returns_void:
cfile.write(u' return _ret;\n') out(u' return _ret;\n')
cfile.write("}\n\n") out(u'}\n\n')
max_c_api_param_count = 0 max_c_api_param_count = 0
@ -836,24 +836,24 @@ WINE_DEFAULT_DEBUG_CHANNEL(vrclient);
cfile.write("} %s;\n\n" % winclassname) cfile.write("} %s;\n\n" % winclassname)
for method in klass.methods: for method in klass.methods:
handle_thiscall_wrapper(klass, method, cfile) handle_thiscall_wrapper(klass, method, cfile.write)
cfile.write('\n') cfile.write('\n')
for method in klass.methods: for method in klass.methods:
if type(method) is Destructor: if type(method) is Destructor:
continue continue
handle_method_hpp(method, cppname, cpp_h) handle_method_hpp(method, cppname, cpp_h.write)
for method in klass.methods: for method in klass.methods:
if type(method) is Destructor: if type(method) is Destructor:
continue continue
handle_method_cpp(method, klass.spelling, cppname, cpp) handle_method_cpp(method, klass.spelling, cppname, cpp.write)
for method in klass.methods: for method in klass.methods:
if type(method) is Destructor: if type(method) is Destructor:
continue continue
else: 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("extern vtable_ptr %s_vtable;\n\n" % winclassname)
cfile.write("#ifndef __GNUC__\n") cfile.write("#ifndef __GNUC__\n")

View File

@ -89,10 +89,10 @@ bool cppIVRCompositor_IVRCompositor_005_GetFrameTiming(void *linux_side, winComp
{ {
bool _ret; bool _ret;
Compositor_FrameTiming lin; Compositor_FrameTiming lin;
if(pTiming) if (pTiming)
struct_Compositor_FrameTiming_091_win_to_lin(pTiming, &lin); struct_Compositor_FrameTiming_091_win_to_lin(pTiming, &lin);
_ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo);
if(pTiming) if (pTiming)
struct_Compositor_FrameTiming_091_lin_to_win(&lin, pTiming); struct_Compositor_FrameTiming_091_lin_to_win(&lin, pTiming);
return _ret; return _ret;
} }

View File

@ -68,10 +68,10 @@ bool cppIVRCompositor_IVRCompositor_006_GetFrameTiming(void *linux_side, winComp
{ {
bool _ret; bool _ret;
Compositor_FrameTiming lin; Compositor_FrameTiming lin;
if(pTiming) if (pTiming)
struct_Compositor_FrameTiming_092_win_to_lin(pTiming, &lin); struct_Compositor_FrameTiming_092_win_to_lin(pTiming, &lin);
_ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo);
if(pTiming) if (pTiming)
struct_Compositor_FrameTiming_092_lin_to_win(&lin, pTiming); struct_Compositor_FrameTiming_092_lin_to_win(&lin, pTiming);
return _ret; return _ret;
} }

View File

@ -63,10 +63,10 @@ bool cppIVRCompositor_IVRCompositor_007_GetFrameTiming(void *linux_side, winComp
{ {
bool _ret; bool _ret;
Compositor_FrameTiming lin; Compositor_FrameTiming lin;
if(pTiming) if (pTiming)
struct_Compositor_FrameTiming_098_win_to_lin(pTiming, &lin); struct_Compositor_FrameTiming_098_win_to_lin(pTiming, &lin);
_ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo);
if(pTiming) if (pTiming)
struct_Compositor_FrameTiming_098_lin_to_win(&lin, pTiming); struct_Compositor_FrameTiming_098_lin_to_win(&lin, pTiming);
return _ret; return _ret;
} }

View File

@ -63,10 +63,10 @@ bool cppIVRCompositor_IVRCompositor_008_GetFrameTiming(void *linux_side, winComp
{ {
bool _ret; bool _ret;
Compositor_FrameTiming lin; Compositor_FrameTiming lin;
if(pTiming) if (pTiming)
struct_Compositor_FrameTiming_0910_win_to_lin(pTiming, &lin); struct_Compositor_FrameTiming_0910_win_to_lin(pTiming, &lin);
_ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo);
if(pTiming) if (pTiming)
struct_Compositor_FrameTiming_0910_lin_to_win(&lin, pTiming); struct_Compositor_FrameTiming_0910_lin_to_win(&lin, pTiming);
return _ret; return _ret;
} }

View File

@ -56,10 +56,10 @@ bool cppIVRCompositor_IVRCompositor_009_GetFrameTiming(void *linux_side, winComp
{ {
bool _ret; bool _ret;
Compositor_FrameTiming lin; Compositor_FrameTiming lin;
if(pTiming) if (pTiming)
struct_Compositor_FrameTiming_0913_win_to_lin(pTiming, &lin); struct_Compositor_FrameTiming_0913_win_to_lin(pTiming, &lin);
_ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo);
if(pTiming) if (pTiming)
struct_Compositor_FrameTiming_0913_lin_to_win(&lin, pTiming); struct_Compositor_FrameTiming_0913_lin_to_win(&lin, pTiming);
return _ret; return _ret;
} }

View File

@ -56,10 +56,10 @@ bool cppIVRCompositor_IVRCompositor_010_GetFrameTiming(void *linux_side, winComp
{ {
bool _ret; bool _ret;
Compositor_FrameTiming lin; Compositor_FrameTiming lin;
if(pTiming) if (pTiming)
struct_Compositor_FrameTiming_0914_win_to_lin(pTiming, &lin); struct_Compositor_FrameTiming_0914_win_to_lin(pTiming, &lin);
_ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo);
if(pTiming) if (pTiming)
struct_Compositor_FrameTiming_0914_lin_to_win(&lin, pTiming); struct_Compositor_FrameTiming_0914_lin_to_win(&lin, pTiming);
return _ret; return _ret;
} }

View File

@ -63,10 +63,10 @@ bool cppIVRCompositor_IVRCompositor_016_GetFrameTiming(void *linux_side, winComp
{ {
bool _ret; bool _ret;
Compositor_FrameTiming lin; Compositor_FrameTiming lin;
if(pTiming) if (pTiming)
struct_Compositor_FrameTiming_103_win_to_lin(pTiming, &lin); struct_Compositor_FrameTiming_103_win_to_lin(pTiming, &lin);
_ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo); _ret = ((IVRCompositor*)linux_side)->GetFrameTiming(pTiming ? &lin : nullptr, (uint32_t)unFramesAgo);
if(pTiming) if (pTiming)
struct_Compositor_FrameTiming_103_lin_to_win(&lin, pTiming); struct_Compositor_FrameTiming_103_lin_to_win(&lin, pTiming);
return _ret; return _ret;
} }

View File

@ -48,11 +48,11 @@ EVRInputError cppIVRInput_IVRInput_003_GetDigitalActionData(void *linux_side, VR
{ {
EVRInputError _ret; EVRInputError _ret;
InputDigitalActionData_t lin; InputDigitalActionData_t lin;
if(pActionData) if (pActionData)
struct_InputDigitalActionData_t_1015_win_to_lin(pActionData, &lin); struct_InputDigitalActionData_t_1015_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0;
_ret = ((IVRInput*)linux_side)->GetDigitalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize); _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); struct_InputDigitalActionData_t_1015_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -61,11 +61,11 @@ EVRInputError cppIVRInput_IVRInput_003_GetAnalogActionData(void *linux_side, VRA
{ {
EVRInputError _ret; EVRInputError _ret;
InputAnalogActionData_t lin; InputAnalogActionData_t lin;
if(pActionData) if (pActionData)
struct_InputAnalogActionData_t_1015_win_to_lin(pActionData, &lin); struct_InputAnalogActionData_t_1015_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0;
_ret = ((IVRInput*)linux_side)->GetAnalogActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize); _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); struct_InputAnalogActionData_t_1015_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -74,11 +74,11 @@ EVRInputError cppIVRInput_IVRInput_003_GetPoseActionData(void *linux_side, VRAct
{ {
EVRInputError _ret; EVRInputError _ret;
InputPoseActionData_t lin; InputPoseActionData_t lin;
if(pActionData) if (pActionData)
struct_InputPoseActionData_t_1015_win_to_lin(pActionData, &lin); struct_InputPoseActionData_t_1015_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputPoseActionData_t_1015_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -87,10 +87,10 @@ EVRInputError cppIVRInput_IVRInput_003_GetSkeletalActionData(void *linux_side, V
{ {
EVRInputError _ret; EVRInputError _ret;
InputSkeletonActionData_t lin; InputSkeletonActionData_t lin;
if(pActionData) if (pActionData)
struct_InputSkeletonActionData_t_1015_win_to_lin(pActionData, &lin); 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); _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); struct_InputSkeletonActionData_t_1015_lin_to_win(&lin, pActionData);
return _ret; return _ret;
} }

View File

@ -48,11 +48,11 @@ EVRInputError cppIVRInput_IVRInput_004_GetDigitalActionData(void *linux_side, VR
{ {
EVRInputError _ret; EVRInputError _ret;
InputDigitalActionData_t lin; InputDigitalActionData_t lin;
if(pActionData) if (pActionData)
struct_InputDigitalActionData_t_1017_win_to_lin(pActionData, &lin); struct_InputDigitalActionData_t_1017_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputDigitalActionData_t_1017_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -61,11 +61,11 @@ EVRInputError cppIVRInput_IVRInput_004_GetAnalogActionData(void *linux_side, VRA
{ {
EVRInputError _ret; EVRInputError _ret;
InputAnalogActionData_t lin; InputAnalogActionData_t lin;
if(pActionData) if (pActionData)
struct_InputAnalogActionData_t_1017_win_to_lin(pActionData, &lin); struct_InputAnalogActionData_t_1017_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputAnalogActionData_t_1017_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -74,11 +74,11 @@ EVRInputError cppIVRInput_IVRInput_004_GetPoseActionData(void *linux_side, VRAct
{ {
EVRInputError _ret; EVRInputError _ret;
InputPoseActionData_t lin; InputPoseActionData_t lin;
if(pActionData) if (pActionData)
struct_InputPoseActionData_t_1017_win_to_lin(pActionData, &lin); struct_InputPoseActionData_t_1017_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputPoseActionData_t_1017_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -87,11 +87,11 @@ EVRInputError cppIVRInput_IVRInput_004_GetSkeletalActionData(void *linux_side, V
{ {
EVRInputError _ret; EVRInputError _ret;
InputSkeletalActionData_t lin; InputSkeletalActionData_t lin;
if(pActionData) if (pActionData)
struct_InputSkeletalActionData_t_1017_win_to_lin(pActionData, &lin); struct_InputSkeletalActionData_t_1017_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputSkeletalActionData_t_1017_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }

View File

@ -48,11 +48,11 @@ EVRInputError cppIVRInput_IVRInput_005_GetDigitalActionData(void *linux_side, VR
{ {
EVRInputError _ret; EVRInputError _ret;
InputDigitalActionData_t lin; InputDigitalActionData_t lin;
if(pActionData) if (pActionData)
struct_InputDigitalActionData_t_1322_win_to_lin(pActionData, &lin); struct_InputDigitalActionData_t_1322_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputDigitalActionData_t_1322_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -61,11 +61,11 @@ EVRInputError cppIVRInput_IVRInput_005_GetAnalogActionData(void *linux_side, VRA
{ {
EVRInputError _ret; EVRInputError _ret;
InputAnalogActionData_t lin; InputAnalogActionData_t lin;
if(pActionData) if (pActionData)
struct_InputAnalogActionData_t_1322_win_to_lin(pActionData, &lin); struct_InputAnalogActionData_t_1322_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputAnalogActionData_t_1322_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -74,11 +74,11 @@ EVRInputError cppIVRInput_IVRInput_005_GetPoseActionData(void *linux_side, VRAct
{ {
EVRInputError _ret; EVRInputError _ret;
InputPoseActionData_t lin; InputPoseActionData_t lin;
if(pActionData) if (pActionData)
struct_InputPoseActionData_t_1322_win_to_lin(pActionData, &lin); struct_InputPoseActionData_t_1322_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputPoseActionData_t_1322_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -87,11 +87,11 @@ EVRInputError cppIVRInput_IVRInput_005_GetSkeletalActionData(void *linux_side, V
{ {
EVRInputError _ret; EVRInputError _ret;
InputSkeletalActionData_t lin; InputSkeletalActionData_t lin;
if(pActionData) if (pActionData)
struct_InputSkeletalActionData_t_1322_win_to_lin(pActionData, &lin); struct_InputSkeletalActionData_t_1322_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0;
_ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize); _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); struct_InputSkeletalActionData_t_1322_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }

View File

@ -48,11 +48,11 @@ EVRInputError cppIVRInput_IVRInput_006_GetDigitalActionData(void *linux_side, VR
{ {
EVRInputError _ret; EVRInputError _ret;
InputDigitalActionData_t lin; InputDigitalActionData_t lin;
if(pActionData) if (pActionData)
struct_InputDigitalActionData_t_1418_win_to_lin(pActionData, &lin); struct_InputDigitalActionData_t_1418_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputDigitalActionData_t_1418_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -61,11 +61,11 @@ EVRInputError cppIVRInput_IVRInput_006_GetAnalogActionData(void *linux_side, VRA
{ {
EVRInputError _ret; EVRInputError _ret;
InputAnalogActionData_t lin; InputAnalogActionData_t lin;
if(pActionData) if (pActionData)
struct_InputAnalogActionData_t_1418_win_to_lin(pActionData, &lin); struct_InputAnalogActionData_t_1418_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputAnalogActionData_t_1418_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -74,11 +74,11 @@ EVRInputError cppIVRInput_IVRInput_006_GetPoseActionDataRelativeToNow(void *linu
{ {
EVRInputError _ret; EVRInputError _ret;
InputPoseActionData_t lin; InputPoseActionData_t lin;
if(pActionData) if (pActionData)
struct_InputPoseActionData_t_1418_win_to_lin(pActionData, &lin); struct_InputPoseActionData_t_1418_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputPoseActionData_t_1418_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -87,11 +87,11 @@ EVRInputError cppIVRInput_IVRInput_006_GetPoseActionDataForNextFrame(void *linux
{ {
EVRInputError _ret; EVRInputError _ret;
InputPoseActionData_t lin; InputPoseActionData_t lin;
if(pActionData) if (pActionData)
struct_InputPoseActionData_t_1418_win_to_lin(pActionData, &lin); struct_InputPoseActionData_t_1418_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputPoseActionData_t_1418_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -100,11 +100,11 @@ EVRInputError cppIVRInput_IVRInput_006_GetSkeletalActionData(void *linux_side, V
{ {
EVRInputError _ret; EVRInputError _ret;
InputSkeletalActionData_t lin; InputSkeletalActionData_t lin;
if(pActionData) if (pActionData)
struct_InputSkeletalActionData_t_1418_win_to_lin(pActionData, &lin); struct_InputSkeletalActionData_t_1418_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0;
_ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize); _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); struct_InputSkeletalActionData_t_1418_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }

View File

@ -48,11 +48,11 @@ EVRInputError cppIVRInput_IVRInput_007_GetDigitalActionData(void *linux_side, VR
{ {
EVRInputError _ret; EVRInputError _ret;
InputDigitalActionData_t lin; InputDigitalActionData_t lin;
if(pActionData) if (pActionData)
struct_InputDigitalActionData_t_1916_win_to_lin(pActionData, &lin); struct_InputDigitalActionData_t_1916_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputDigitalActionData_t_1916_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -61,11 +61,11 @@ EVRInputError cppIVRInput_IVRInput_007_GetAnalogActionData(void *linux_side, VRA
{ {
EVRInputError _ret; EVRInputError _ret;
InputAnalogActionData_t lin; InputAnalogActionData_t lin;
if(pActionData) if (pActionData)
struct_InputAnalogActionData_t_1916_win_to_lin(pActionData, &lin); struct_InputAnalogActionData_t_1916_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputAnalogActionData_t_1916_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -74,11 +74,11 @@ EVRInputError cppIVRInput_IVRInput_007_GetPoseActionDataRelativeToNow(void *linu
{ {
EVRInputError _ret; EVRInputError _ret;
InputPoseActionData_t lin; InputPoseActionData_t lin;
if(pActionData) if (pActionData)
struct_InputPoseActionData_t_1916_win_to_lin(pActionData, &lin); struct_InputPoseActionData_t_1916_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputPoseActionData_t_1916_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -87,11 +87,11 @@ EVRInputError cppIVRInput_IVRInput_007_GetPoseActionDataForNextFrame(void *linux
{ {
EVRInputError _ret; EVRInputError _ret;
InputPoseActionData_t lin; InputPoseActionData_t lin;
if(pActionData) if (pActionData)
struct_InputPoseActionData_t_1916_win_to_lin(pActionData, &lin); struct_InputPoseActionData_t_1916_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputPoseActionData_t_1916_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -100,11 +100,11 @@ EVRInputError cppIVRInput_IVRInput_007_GetSkeletalActionData(void *linux_side, V
{ {
EVRInputError _ret; EVRInputError _ret;
InputSkeletalActionData_t lin; InputSkeletalActionData_t lin;
if(pActionData) if (pActionData)
struct_InputSkeletalActionData_t_1916_win_to_lin(pActionData, &lin); struct_InputSkeletalActionData_t_1916_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0;
_ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize); _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); struct_InputSkeletalActionData_t_1916_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }

View File

@ -48,11 +48,11 @@ EVRInputError cppIVRInput_IVRInput_010_GetDigitalActionData(void *linux_side, VR
{ {
EVRInputError _ret; EVRInputError _ret;
InputDigitalActionData_t lin; InputDigitalActionData_t lin;
if(pActionData) if (pActionData)
struct_InputDigitalActionData_t_1267_win_to_lin(pActionData, &lin); struct_InputDigitalActionData_t_1267_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputDigitalActionData_t_1267_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -61,11 +61,11 @@ EVRInputError cppIVRInput_IVRInput_010_GetAnalogActionData(void *linux_side, VRA
{ {
EVRInputError _ret; EVRInputError _ret;
InputAnalogActionData_t lin; InputAnalogActionData_t lin;
if(pActionData) if (pActionData)
struct_InputAnalogActionData_t_1267_win_to_lin(pActionData, &lin); struct_InputAnalogActionData_t_1267_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputAnalogActionData_t_1267_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -74,11 +74,11 @@ EVRInputError cppIVRInput_IVRInput_010_GetPoseActionDataRelativeToNow(void *linu
{ {
EVRInputError _ret; EVRInputError _ret;
InputPoseActionData_t lin; InputPoseActionData_t lin;
if(pActionData) if (pActionData)
struct_InputPoseActionData_t_1267_win_to_lin(pActionData, &lin); struct_InputPoseActionData_t_1267_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputPoseActionData_t_1267_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -87,11 +87,11 @@ EVRInputError cppIVRInput_IVRInput_010_GetPoseActionDataForNextFrame(void *linux
{ {
EVRInputError _ret; EVRInputError _ret;
InputPoseActionData_t lin; InputPoseActionData_t lin;
if(pActionData) if (pActionData)
struct_InputPoseActionData_t_1267_win_to_lin(pActionData, &lin); struct_InputPoseActionData_t_1267_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; 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); _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); struct_InputPoseActionData_t_1267_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }
@ -100,11 +100,11 @@ EVRInputError cppIVRInput_IVRInput_010_GetSkeletalActionData(void *linux_side, V
{ {
EVRInputError _ret; EVRInputError _ret;
InputSkeletalActionData_t lin; InputSkeletalActionData_t lin;
if(pActionData) if (pActionData)
struct_InputSkeletalActionData_t_1267_win_to_lin(pActionData, &lin); struct_InputSkeletalActionData_t_1267_win_to_lin(pActionData, &lin);
uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0; uint32_t lin_unActionDataSize = unActionDataSize ? sizeof(lin) : 0;
_ret = ((IVRInput*)linux_side)->GetSkeletalActionData((vr::VRActionHandle_t)action, pActionData ? &lin : nullptr, lin_unActionDataSize); _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); struct_InputSkeletalActionData_t_1267_lin_to_win(&lin, pActionData, unActionDataSize);
return _ret; return _ret;
} }

View File

@ -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) void cppIVROverlayView_IVROverlayView_003_PostOverlayEvent(void *linux_side, VROverlayHandle_t ulOverlayHandle, const VREvent_t *pvrEvent)
{ {
VREvent_t lin; VREvent_t lin;
if(pvrEvent) if (pvrEvent)
struct_VREvent_t_1267_win_to_lin(pvrEvent, &lin); struct_VREvent_t_1267_win_to_lin(pvrEvent, &lin);
((IVROverlayView*)linux_side)->PostOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pvrEvent ? &lin : nullptr); ((IVROverlayView*)linux_side)->PostOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pvrEvent ? &lin : nullptr);
} }

View File

@ -251,11 +251,11 @@ bool cppIVROverlay_IVROverlay_010_PollNextOverlayEvent(void *linux_side, VROverl
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_0918_win_to_lin(pEvent, &lin); struct_VREvent_t_0918_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); _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); struct_VREvent_t_0918_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }

View File

@ -265,11 +265,11 @@ bool cppIVROverlay_IVROverlay_011_PollNextOverlayEvent(void *linux_side, VROverl
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_0920_win_to_lin(pEvent, &lin); struct_VREvent_t_0920_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); _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); struct_VREvent_t_0920_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }

View File

@ -265,11 +265,11 @@ bool cppIVROverlay_IVROverlay_012_PollNextOverlayEvent(void *linux_side, VROverl
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_101_win_to_lin(pEvent, &lin); struct_VREvent_t_101_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); _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); struct_VREvent_t_101_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }

View File

@ -293,11 +293,11 @@ bool cppIVROverlay_IVROverlay_013_PollNextOverlayEvent(void *linux_side, VROverl
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_104_win_to_lin(pEvent, &lin); struct_VREvent_t_104_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); _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); struct_VREvent_t_104_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }

View File

@ -293,11 +293,11 @@ bool cppIVROverlay_IVROverlay_014_PollNextOverlayEvent(void *linux_side, VROverl
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_106_win_to_lin(pEvent, &lin); struct_VREvent_t_106_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); _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); struct_VREvent_t_106_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }

View File

@ -328,11 +328,11 @@ bool cppIVROverlay_IVROverlay_016_PollNextOverlayEvent(void *linux_side, VROverl
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1010_win_to_lin(pEvent, &lin); struct_VREvent_t_1010_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); _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); struct_VREvent_t_1010_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }

View File

@ -328,11 +328,11 @@ bool cppIVROverlay_IVROverlay_017_PollNextOverlayEvent(void *linux_side, VROverl
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1011_win_to_lin(pEvent, &lin); struct_VREvent_t_1011_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); _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); struct_VREvent_t_1011_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }

View File

@ -328,11 +328,11 @@ bool cppIVROverlay_IVROverlay_018_PollNextOverlayEvent(void *linux_side, VROverl
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1017_win_to_lin(pEvent, &lin); struct_VREvent_t_1017_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); _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); struct_VREvent_t_1017_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }

View File

@ -328,11 +328,11 @@ bool cppIVROverlay_IVROverlay_019_PollNextOverlayEvent(void *linux_side, VROverl
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1610_win_to_lin(pEvent, &lin); struct_VREvent_t_1610_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); _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); struct_VREvent_t_1610_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }

View File

@ -314,11 +314,11 @@ bool cppIVROverlay_IVROverlay_020_PollNextOverlayEvent(void *linux_side, VROverl
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1715_win_to_lin(pEvent, &lin); struct_VREvent_t_1715_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); _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); struct_VREvent_t_1715_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }

View File

@ -314,11 +314,11 @@ bool cppIVROverlay_IVROverlay_021_PollNextOverlayEvent(void *linux_side, VROverl
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1819_win_to_lin(pEvent, &lin); struct_VREvent_t_1819_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); _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); struct_VREvent_t_1819_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }

View File

@ -335,11 +335,11 @@ bool cppIVROverlay_IVROverlay_022_PollNextOverlayEvent(void *linux_side, VROverl
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1916_win_to_lin(pEvent, &lin); struct_VREvent_t_1916_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); _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); struct_VREvent_t_1916_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }

View File

@ -321,11 +321,11 @@ bool cppIVROverlay_IVROverlay_024_PollNextOverlayEvent(void *linux_side, VROverl
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_11415_win_to_lin(pEvent, &lin); struct_VREvent_t_11415_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); _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); struct_VREvent_t_11415_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }

View File

@ -328,11 +328,11 @@ bool cppIVROverlay_IVROverlay_025_PollNextOverlayEvent(void *linux_side, VROverl
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1168_win_to_lin(pEvent, &lin); struct_VREvent_t_1168_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); _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); struct_VREvent_t_1168_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }

View File

@ -349,11 +349,11 @@ bool cppIVROverlay_IVROverlay_026_PollNextOverlayEvent(void *linux_side, VROverl
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1237_win_to_lin(pEvent, &lin); struct_VREvent_t_1237_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); _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); struct_VREvent_t_1237_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }

View File

@ -335,11 +335,11 @@ bool cppIVROverlay_IVROverlay_027_PollNextOverlayEvent(void *linux_side, VROverl
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1267_win_to_lin(pEvent, &lin); struct_VREvent_t_1267_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent); _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); struct_VREvent_t_1267_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }

View File

@ -14,7 +14,7 @@ bool cppIVRRenderModels_IVRRenderModels_002_LoadRenderModel(void *linux_side, co
bool _ret; bool _ret;
RenderModel_t *lin; RenderModel_t *lin;
_ret = ((IVRRenderModels*)linux_side)->LoadRenderModel((const char *)pchRenderModelName, ppRenderModel ? &lin : nullptr); _ret = ((IVRRenderModels*)linux_side)->LoadRenderModel((const char *)pchRenderModelName, ppRenderModel ? &lin : nullptr);
if(_ret == 0) if (_ret == 0)
*ppRenderModel = struct_RenderModel_t_0915_wrap(lin); *ppRenderModel = struct_RenderModel_t_0915_wrap(lin);
return _ret; return _ret;
} }
@ -29,7 +29,7 @@ bool cppIVRRenderModels_IVRRenderModels_002_LoadTexture(void *linux_side, Textur
bool _ret; bool _ret;
RenderModel_TextureMap_t *lin; RenderModel_TextureMap_t *lin;
_ret = ((IVRRenderModels*)linux_side)->LoadTexture((vr::TextureID_t)textureId, ppTexture ? &lin : nullptr); _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); *ppTexture = struct_RenderModel_TextureMap_t_0915_wrap(lin);
return _ret; return _ret;
} }
@ -85,7 +85,7 @@ bool cppIVRRenderModels_IVRRenderModels_002_GetComponentState(void *linux_side,
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_0915_win_to_lin(pControllerState, &lin); 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); _ret = ((IVRRenderModels*)linux_side)->GetComponentState((const char *)pchRenderModelName, (const char *)pchComponentName, pControllerState ? &lin : nullptr, (vr::RenderModel_ComponentState_t *)pComponentState);
return _ret; return _ret;

View File

@ -14,7 +14,7 @@ EVRRenderModelError cppIVRRenderModels_IVRRenderModels_004_LoadRenderModel_Async
EVRRenderModelError _ret; EVRRenderModelError _ret;
RenderModel_t *lin; RenderModel_t *lin;
_ret = ((IVRRenderModels*)linux_side)->LoadRenderModel_Async((const char *)pchRenderModelName, ppRenderModel ? &lin : nullptr); _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); *ppRenderModel = struct_RenderModel_t_0918_wrap(lin);
return _ret; return _ret;
} }
@ -29,7 +29,7 @@ EVRRenderModelError cppIVRRenderModels_IVRRenderModels_004_LoadTexture_Async(voi
EVRRenderModelError _ret; EVRRenderModelError _ret;
RenderModel_TextureMap_t *lin; RenderModel_TextureMap_t *lin;
_ret = ((IVRRenderModels*)linux_side)->LoadTexture_Async((vr::TextureID_t)textureId, ppTexture ? &lin : nullptr); _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); *ppTexture = struct_RenderModel_TextureMap_t_0918_wrap(lin);
return _ret; return _ret;
} }
@ -97,7 +97,7 @@ bool cppIVRRenderModels_IVRRenderModels_004_GetComponentState(void *linux_side,
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_0918_win_to_lin(pControllerState, &lin); 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); _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; return _ret;

View File

@ -14,7 +14,7 @@ EVRRenderModelError cppIVRRenderModels_IVRRenderModels_005_LoadRenderModel_Async
EVRRenderModelError _ret; EVRRenderModelError _ret;
RenderModel_t *lin; RenderModel_t *lin;
_ret = ((IVRRenderModels*)linux_side)->LoadRenderModel_Async((const char *)pchRenderModelName, ppRenderModel ? &lin : nullptr); _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); *ppRenderModel = struct_RenderModel_t_1015_wrap(lin);
return _ret; return _ret;
} }
@ -29,7 +29,7 @@ EVRRenderModelError cppIVRRenderModels_IVRRenderModels_005_LoadTexture_Async(voi
EVRRenderModelError _ret; EVRRenderModelError _ret;
RenderModel_TextureMap_t *lin; RenderModel_TextureMap_t *lin;
_ret = ((IVRRenderModels*)linux_side)->LoadTexture_Async((vr::TextureID_t)textureId, ppTexture ? &lin : nullptr); _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); *ppTexture = struct_RenderModel_TextureMap_t_1015_wrap(lin);
return _ret; return _ret;
} }
@ -104,7 +104,7 @@ bool cppIVRRenderModels_IVRRenderModels_005_GetComponentState(void *linux_side,
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_1015_win_to_lin(pControllerState, &lin); 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); _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; return _ret;

View File

@ -14,7 +14,7 @@ EVRRenderModelError cppIVRRenderModels_IVRRenderModels_006_LoadRenderModel_Async
EVRRenderModelError _ret; EVRRenderModelError _ret;
RenderModel_t *lin; RenderModel_t *lin;
_ret = ((IVRRenderModels*)linux_side)->LoadRenderModel_Async((const char *)pchRenderModelName, ppRenderModel ? &lin : nullptr); _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); *ppRenderModel = struct_RenderModel_t_1267_wrap(lin);
return _ret; return _ret;
} }
@ -29,7 +29,7 @@ EVRRenderModelError cppIVRRenderModels_IVRRenderModels_006_LoadTexture_Async(voi
EVRRenderModelError _ret; EVRRenderModelError _ret;
RenderModel_TextureMap_t *lin; RenderModel_TextureMap_t *lin;
_ret = ((IVRRenderModels*)linux_side)->LoadTexture_Async((vr::TextureID_t)textureId, ppTexture ? &lin : nullptr); _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); *ppTexture = struct_RenderModel_TextureMap_t_1267_wrap(lin);
return _ret; return _ret;
} }
@ -111,7 +111,7 @@ bool cppIVRRenderModels_IVRRenderModels_006_GetComponentState(void *linux_side,
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_1267_win_to_lin(pControllerState, &lin); 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); _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; return _ret;

View File

@ -200,10 +200,10 @@ bool cppIVRSystem_IVRSystem_003_GetControllerState(void *linux_side, TrackedDevi
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_091_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_091_win_to_lin(pControllerState, &lin);
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr); _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); struct_VRControllerState001_t_091_lin_to_win(&lin, pControllerState, -1);
return _ret; return _ret;
} }
@ -212,10 +212,10 @@ bool cppIVRSystem_IVRSystem_003_GetControllerStateWithPose(void *linux_side, Tra
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_091_win_to_lin(pControllerState, &lin); 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); _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); struct_VRControllerState001_t_091_lin_to_win(&lin, pControllerState, -1);
return _ret; return _ret;
} }

View File

@ -188,10 +188,10 @@ bool cppIVRSystem_IVRSystem_004_GetControllerState(void *linux_side, TrackedDevi
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_092_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_092_win_to_lin(pControllerState, &lin);
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr); _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); struct_VRControllerState001_t_092_lin_to_win(&lin, pControllerState, -1);
return _ret; return _ret;
} }
@ -200,10 +200,10 @@ bool cppIVRSystem_IVRSystem_004_GetControllerStateWithPose(void *linux_side, Tra
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_092_win_to_lin(pControllerState, &lin); 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); _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); struct_VRControllerState001_t_092_lin_to_win(&lin, pControllerState, -1);
return _ret; return _ret;
} }

View File

@ -195,10 +195,10 @@ bool cppIVRSystem_IVRSystem_005_GetControllerState(void *linux_side, TrackedDevi
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_098_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_098_win_to_lin(pControllerState, &lin);
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr); _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); struct_VRControllerState001_t_098_lin_to_win(&lin, pControllerState, -1);
return _ret; return _ret;
} }
@ -207,10 +207,10 @@ bool cppIVRSystem_IVRSystem_005_GetControllerStateWithPose(void *linux_side, Tra
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_098_win_to_lin(pControllerState, &lin); 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); _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); struct_VRControllerState001_t_098_lin_to_win(&lin, pControllerState, -1);
return _ret; return _ret;
} }

View File

@ -209,10 +209,10 @@ bool cppIVRSystem_IVRSystem_006_GetControllerState(void *linux_side, TrackedDevi
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_0910_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_0910_win_to_lin(pControllerState, &lin);
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr); _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); struct_VRControllerState001_t_0910_lin_to_win(&lin, pControllerState, -1);
return _ret; return _ret;
} }
@ -221,10 +221,10 @@ bool cppIVRSystem_IVRSystem_006_GetControllerStateWithPose(void *linux_side, Tra
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_0910_win_to_lin(pControllerState, &lin); 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); _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); struct_VRControllerState001_t_0910_lin_to_win(&lin, pControllerState, -1);
return _ret; return _ret;
} }

View File

@ -211,10 +211,10 @@ bool cppIVRSystem_IVRSystem_009_GetControllerState(void *linux_side, TrackedDevi
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_0912_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_0912_win_to_lin(pControllerState, &lin);
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr); _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); struct_VRControllerState001_t_0912_lin_to_win(&lin, pControllerState, -1);
return _ret; return _ret;
} }
@ -223,10 +223,10 @@ bool cppIVRSystem_IVRSystem_009_GetControllerStateWithPose(void *linux_side, ETr
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_0912_win_to_lin(pControllerState, &lin); 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); _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); struct_VRControllerState001_t_0912_lin_to_win(&lin, pControllerState, -1);
return _ret; return _ret;
} }

View File

@ -225,10 +225,10 @@ bool cppIVRSystem_IVRSystem_010_GetControllerState(void *linux_side, TrackedDevi
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_0914_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_0914_win_to_lin(pControllerState, &lin);
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr); _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); struct_VRControllerState001_t_0914_lin_to_win(&lin, pControllerState, -1);
return _ret; return _ret;
} }
@ -237,10 +237,10 @@ bool cppIVRSystem_IVRSystem_010_GetControllerStateWithPose(void *linux_side, ETr
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_0914_win_to_lin(pControllerState, &lin); 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); _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); struct_VRControllerState001_t_0914_lin_to_win(&lin, pControllerState, -1);
return _ret; return _ret;
} }

View File

@ -197,11 +197,11 @@ bool cppIVRSystem_IVRSystem_011_PollNextEvent(void *linux_side, winVREvent_t_091
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_0918_win_to_lin(pEvent, &lin); struct_VREvent_t_0918_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent);
if(pEvent) if (pEvent)
struct_VREvent_t_0918_lin_to_win(&lin, pEvent, uncbVREvent); struct_VREvent_t_0918_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -210,11 +210,11 @@ bool cppIVRSystem_IVRSystem_011_PollNextEventWithPose(void *linux_side, ETrackin
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_0918_win_to_lin(pEvent, &lin); struct_VREvent_t_0918_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; 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); _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); struct_VREvent_t_0918_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -237,10 +237,10 @@ bool cppIVRSystem_IVRSystem_011_GetControllerState(void *linux_side, TrackedDevi
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_0918_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_0918_win_to_lin(pControllerState, &lin);
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr); _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); struct_VRControllerState001_t_0918_lin_to_win(&lin, pControllerState, -1);
return _ret; return _ret;
} }
@ -249,10 +249,10 @@ bool cppIVRSystem_IVRSystem_011_GetControllerStateWithPose(void *linux_side, ETr
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_0918_win_to_lin(pControllerState, &lin); 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); _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); struct_VRControllerState001_t_0918_lin_to_win(&lin, pControllerState, -1);
return _ret; return _ret;
} }

View File

@ -197,11 +197,11 @@ bool cppIVRSystem_IVRSystem_012_PollNextEvent(void *linux_side, winVREvent_t_103
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_103_win_to_lin(pEvent, &lin); struct_VREvent_t_103_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent);
if(pEvent) if (pEvent)
struct_VREvent_t_103_lin_to_win(&lin, pEvent, uncbVREvent); struct_VREvent_t_103_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -210,11 +210,11 @@ bool cppIVRSystem_IVRSystem_012_PollNextEventWithPose(void *linux_side, ETrackin
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_103_win_to_lin(pEvent, &lin); struct_VREvent_t_103_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; 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); _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); struct_VREvent_t_103_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -237,10 +237,10 @@ bool cppIVRSystem_IVRSystem_012_GetControllerState(void *linux_side, TrackedDevi
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_103_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_103_win_to_lin(pControllerState, &lin);
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr); _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); struct_VRControllerState001_t_103_lin_to_win(&lin, pControllerState, -1);
return _ret; return _ret;
} }
@ -249,10 +249,10 @@ bool cppIVRSystem_IVRSystem_012_GetControllerStateWithPose(void *linux_side, ETr
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_103_win_to_lin(pControllerState, &lin); 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); _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); struct_VRControllerState001_t_103_lin_to_win(&lin, pControllerState, -1);
return _ret; return _ret;
} }

View File

@ -197,11 +197,11 @@ bool cppIVRSystem_IVRSystem_014_PollNextEvent(void *linux_side, winVREvent_t_104
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_104_win_to_lin(pEvent, &lin); struct_VREvent_t_104_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent);
if(pEvent) if (pEvent)
struct_VREvent_t_104_lin_to_win(&lin, pEvent, uncbVREvent); struct_VREvent_t_104_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -210,11 +210,11 @@ bool cppIVRSystem_IVRSystem_014_PollNextEventWithPose(void *linux_side, ETrackin
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_104_win_to_lin(pEvent, &lin); struct_VREvent_t_104_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; 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); _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); struct_VREvent_t_104_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -237,11 +237,11 @@ bool cppIVRSystem_IVRSystem_014_GetControllerState(void *linux_side, TrackedDevi
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_104_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_104_win_to_lin(pControllerState, &lin);
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize); _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); struct_VRControllerState001_t_104_lin_to_win(&lin, pControllerState, unControllerStateSize);
return _ret; return _ret;
} }
@ -250,11 +250,11 @@ bool cppIVRSystem_IVRSystem_014_GetControllerStateWithPose(void *linux_side, ETr
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_104_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_104_win_to_lin(pControllerState, &lin);
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; 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); _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); struct_VRControllerState001_t_104_lin_to_win(&lin, pControllerState, unControllerStateSize);
return _ret; return _ret;
} }

View File

@ -197,11 +197,11 @@ bool cppIVRSystem_IVRSystem_015_PollNextEvent(void *linux_side, winVREvent_t_107
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_107_win_to_lin(pEvent, &lin); struct_VREvent_t_107_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent);
if(pEvent) if (pEvent)
struct_VREvent_t_107_lin_to_win(&lin, pEvent, uncbVREvent); struct_VREvent_t_107_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -210,11 +210,11 @@ bool cppIVRSystem_IVRSystem_015_PollNextEventWithPose(void *linux_side, ETrackin
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_107_win_to_lin(pEvent, &lin); struct_VREvent_t_107_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; 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); _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); struct_VREvent_t_107_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -237,11 +237,11 @@ bool cppIVRSystem_IVRSystem_015_GetControllerState(void *linux_side, TrackedDevi
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_107_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_107_win_to_lin(pControllerState, &lin);
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize); _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); struct_VRControllerState001_t_107_lin_to_win(&lin, pControllerState, unControllerStateSize);
return _ret; return _ret;
} }
@ -250,11 +250,11 @@ bool cppIVRSystem_IVRSystem_015_GetControllerStateWithPose(void *linux_side, ETr
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_107_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_107_win_to_lin(pControllerState, &lin);
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; 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); _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); struct_VRControllerState001_t_107_lin_to_win(&lin, pControllerState, unControllerStateSize);
return _ret; return _ret;
} }

View File

@ -202,11 +202,11 @@ bool cppIVRSystem_IVRSystem_016_PollNextEvent(void *linux_side, winVREvent_t_109
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_109_win_to_lin(pEvent, &lin); struct_VREvent_t_109_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent);
if(pEvent) if (pEvent)
struct_VREvent_t_109_lin_to_win(&lin, pEvent, uncbVREvent); struct_VREvent_t_109_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -215,11 +215,11 @@ bool cppIVRSystem_IVRSystem_016_PollNextEventWithPose(void *linux_side, ETrackin
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_109_win_to_lin(pEvent, &lin); struct_VREvent_t_109_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; 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); _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); struct_VREvent_t_109_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -242,11 +242,11 @@ bool cppIVRSystem_IVRSystem_016_GetControllerState(void *linux_side, TrackedDevi
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_109_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_109_win_to_lin(pControllerState, &lin);
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize); _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); struct_VRControllerState001_t_109_lin_to_win(&lin, pControllerState, unControllerStateSize);
return _ret; return _ret;
} }
@ -255,11 +255,11 @@ bool cppIVRSystem_IVRSystem_016_GetControllerStateWithPose(void *linux_side, ETr
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_109_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_109_win_to_lin(pControllerState, &lin);
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; 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); _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); struct_VRControllerState001_t_109_lin_to_win(&lin, pControllerState, unControllerStateSize);
return _ret; return _ret;
} }

View File

@ -202,11 +202,11 @@ bool cppIVRSystem_IVRSystem_017_PollNextEvent(void *linux_side, winVREvent_t_101
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1011_win_to_lin(pEvent, &lin); struct_VREvent_t_1011_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent);
if(pEvent) if (pEvent)
struct_VREvent_t_1011_lin_to_win(&lin, pEvent, uncbVREvent); struct_VREvent_t_1011_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -215,11 +215,11 @@ bool cppIVRSystem_IVRSystem_017_PollNextEventWithPose(void *linux_side, ETrackin
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1011_win_to_lin(pEvent, &lin); struct_VREvent_t_1011_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; 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); _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); struct_VREvent_t_1011_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -242,11 +242,11 @@ bool cppIVRSystem_IVRSystem_017_GetControllerState(void *linux_side, TrackedDevi
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_1011_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_1011_win_to_lin(pControllerState, &lin);
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize); _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); struct_VRControllerState001_t_1011_lin_to_win(&lin, pControllerState, unControllerStateSize);
return _ret; return _ret;
} }
@ -255,11 +255,11 @@ bool cppIVRSystem_IVRSystem_017_GetControllerStateWithPose(void *linux_side, ETr
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_1011_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_1011_win_to_lin(pControllerState, &lin);
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; 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); _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); struct_VRControllerState001_t_1011_lin_to_win(&lin, pControllerState, unControllerStateSize);
return _ret; return _ret;
} }

View File

@ -209,11 +209,11 @@ bool cppIVRSystem_IVRSystem_019_PollNextEvent(void *linux_side, winVREvent_t_141
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1418_win_to_lin(pEvent, &lin); struct_VREvent_t_1418_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent);
if(pEvent) if (pEvent)
struct_VREvent_t_1418_lin_to_win(&lin, pEvent, uncbVREvent); struct_VREvent_t_1418_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -222,11 +222,11 @@ bool cppIVRSystem_IVRSystem_019_PollNextEventWithPose(void *linux_side, ETrackin
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1418_win_to_lin(pEvent, &lin); struct_VREvent_t_1418_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; 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); _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); struct_VREvent_t_1418_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -249,11 +249,11 @@ bool cppIVRSystem_IVRSystem_019_GetControllerState(void *linux_side, TrackedDevi
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_1418_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_1418_win_to_lin(pControllerState, &lin);
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize); _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); struct_VRControllerState001_t_1418_lin_to_win(&lin, pControllerState, unControllerStateSize);
return _ret; return _ret;
} }
@ -262,11 +262,11 @@ bool cppIVRSystem_IVRSystem_019_GetControllerStateWithPose(void *linux_side, ETr
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_1418_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_1418_win_to_lin(pControllerState, &lin);
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; 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); _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); struct_VRControllerState001_t_1418_lin_to_win(&lin, pControllerState, unControllerStateSize);
return _ret; return _ret;
} }

View File

@ -209,11 +209,11 @@ bool cppIVRSystem_IVRSystem_020_PollNextEvent(void *linux_side, winVREvent_t_171
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1715_win_to_lin(pEvent, &lin); struct_VREvent_t_1715_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent);
if(pEvent) if (pEvent)
struct_VREvent_t_1715_lin_to_win(&lin, pEvent, uncbVREvent); struct_VREvent_t_1715_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -222,11 +222,11 @@ bool cppIVRSystem_IVRSystem_020_PollNextEventWithPose(void *linux_side, ETrackin
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1715_win_to_lin(pEvent, &lin); struct_VREvent_t_1715_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; 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); _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); struct_VREvent_t_1715_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -249,11 +249,11 @@ bool cppIVRSystem_IVRSystem_020_GetControllerState(void *linux_side, TrackedDevi
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_1715_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_1715_win_to_lin(pControllerState, &lin);
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize); _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); struct_VRControllerState001_t_1715_lin_to_win(&lin, pControllerState, unControllerStateSize);
return _ret; return _ret;
} }
@ -262,11 +262,11 @@ bool cppIVRSystem_IVRSystem_020_GetControllerStateWithPose(void *linux_side, ETr
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_1715_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_1715_win_to_lin(pControllerState, &lin);
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; 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); _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); struct_VRControllerState001_t_1715_lin_to_win(&lin, pControllerState, unControllerStateSize);
return _ret; return _ret;
} }

View File

@ -209,11 +209,11 @@ bool cppIVRSystem_IVRSystem_021_PollNextEvent(void *linux_side, winVREvent_t_112
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1125_win_to_lin(pEvent, &lin); struct_VREvent_t_1125_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent);
if(pEvent) if (pEvent)
struct_VREvent_t_1125_lin_to_win(&lin, pEvent, uncbVREvent); struct_VREvent_t_1125_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -222,11 +222,11 @@ bool cppIVRSystem_IVRSystem_021_PollNextEventWithPose(void *linux_side, ETrackin
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1125_win_to_lin(pEvent, &lin); struct_VREvent_t_1125_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; 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); _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); struct_VREvent_t_1125_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -249,11 +249,11 @@ bool cppIVRSystem_IVRSystem_021_GetControllerState(void *linux_side, TrackedDevi
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_1125_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_1125_win_to_lin(pControllerState, &lin);
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize); _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); struct_VRControllerState001_t_1125_lin_to_win(&lin, pControllerState, unControllerStateSize);
return _ret; return _ret;
} }
@ -262,11 +262,11 @@ bool cppIVRSystem_IVRSystem_021_GetControllerStateWithPose(void *linux_side, ETr
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_1125_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_1125_win_to_lin(pControllerState, &lin);
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; 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); _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); struct_VRControllerState001_t_1125_lin_to_win(&lin, pControllerState, unControllerStateSize);
return _ret; return _ret;
} }

View File

@ -204,11 +204,11 @@ bool cppIVRSystem_IVRSystem_022_PollNextEvent(void *linux_side, winVREvent_t_126
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1267_win_to_lin(pEvent, &lin); struct_VREvent_t_1267_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent); _ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent);
if(pEvent) if (pEvent)
struct_VREvent_t_1267_lin_to_win(&lin, pEvent, uncbVREvent); struct_VREvent_t_1267_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -217,11 +217,11 @@ bool cppIVRSystem_IVRSystem_022_PollNextEventWithPose(void *linux_side, ETrackin
{ {
bool _ret; bool _ret;
VREvent_t lin; VREvent_t lin;
if(pEvent) if (pEvent)
struct_VREvent_t_1267_win_to_lin(pEvent, &lin); struct_VREvent_t_1267_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0; 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); _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); struct_VREvent_t_1267_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret; return _ret;
} }
@ -244,11 +244,11 @@ bool cppIVRSystem_IVRSystem_022_GetControllerState(void *linux_side, TrackedDevi
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_1267_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_1267_win_to_lin(pControllerState, &lin);
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0;
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize); _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); struct_VRControllerState001_t_1267_lin_to_win(&lin, pControllerState, unControllerStateSize);
return _ret; return _ret;
} }
@ -257,11 +257,11 @@ bool cppIVRSystem_IVRSystem_022_GetControllerStateWithPose(void *linux_side, ETr
{ {
bool _ret; bool _ret;
VRControllerState001_t lin; VRControllerState001_t lin;
if(pControllerState) if (pControllerState)
struct_VRControllerState001_t_1267_win_to_lin(pControllerState, &lin); struct_VRControllerState001_t_1267_win_to_lin(pControllerState, &lin);
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0; 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); _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); struct_VRControllerState001_t_1267_lin_to_win(&lin, pControllerState, unControllerStateSize);
return _ret; return _ret;
} }

View File

@ -90,7 +90,7 @@ bool cppIVRTrackedCamera_IVRTrackedCamera_001_ReleaseVideoStreamFrame(void *linu
{ {
bool _ret; bool _ret;
CameraVideoStreamFrame_t lin; CameraVideoStreamFrame_t lin;
if(pFrameImage) if (pFrameImage)
struct_CameraVideoStreamFrame_t_0914_win_to_lin(pFrameImage, &lin); struct_CameraVideoStreamFrame_t_0914_win_to_lin(pFrameImage, &lin);
_ret = ((IVRTrackedCamera*)linux_side)->ReleaseVideoStreamFrame((vr::TrackedDeviceIndex_t)nDeviceIndex, pFrameImage ? &lin : nullptr); _ret = ((IVRTrackedCamera*)linux_side)->ReleaseVideoStreamFrame((vr::TrackedDeviceIndex_t)nDeviceIndex, pFrameImage ? &lin : nullptr);
return _ret; return _ret;

View File

@ -62,11 +62,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_004_GetVideoStreamFra
{ {
EVRTrackedCameraError _ret; EVRTrackedCameraError _ret;
CameraVideoStreamFrameHeader_t lin; CameraVideoStreamFrameHeader_t lin;
if(pFrameHeader) if (pFrameHeader)
struct_CameraVideoStreamFrameHeader_t_1017_win_to_lin(pFrameHeader, &lin); struct_CameraVideoStreamFrameHeader_t_1017_win_to_lin(pFrameHeader, &lin);
uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; 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); _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); struct_CameraVideoStreamFrameHeader_t_1017_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize);
return _ret; return _ret;
} }
@ -82,11 +82,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_004_GetVideoStreamTex
{ {
EVRTrackedCameraError _ret; EVRTrackedCameraError _ret;
CameraVideoStreamFrameHeader_t lin; CameraVideoStreamFrameHeader_t lin;
if(pFrameHeader) if (pFrameHeader)
struct_CameraVideoStreamFrameHeader_t_1017_win_to_lin(pFrameHeader, &lin); struct_CameraVideoStreamFrameHeader_t_1017_win_to_lin(pFrameHeader, &lin);
uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; 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); _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); struct_CameraVideoStreamFrameHeader_t_1017_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize);
return _ret; return _ret;
} }
@ -95,11 +95,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_004_GetVideoStreamTex
{ {
EVRTrackedCameraError _ret; EVRTrackedCameraError _ret;
CameraVideoStreamFrameHeader_t lin; CameraVideoStreamFrameHeader_t lin;
if(pFrameHeader) if (pFrameHeader)
struct_CameraVideoStreamFrameHeader_t_1017_win_to_lin(pFrameHeader, &lin); struct_CameraVideoStreamFrameHeader_t_1017_win_to_lin(pFrameHeader, &lin);
uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; 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); _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); struct_CameraVideoStreamFrameHeader_t_1017_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize);
return _ret; return _ret;
} }

View File

@ -62,11 +62,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamFra
{ {
EVRTrackedCameraError _ret; EVRTrackedCameraError _ret;
CameraVideoStreamFrameHeader_t lin; CameraVideoStreamFrameHeader_t lin;
if(pFrameHeader) if (pFrameHeader)
struct_CameraVideoStreamFrameHeader_t_1610_win_to_lin(pFrameHeader, &lin); struct_CameraVideoStreamFrameHeader_t_1610_win_to_lin(pFrameHeader, &lin);
uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; 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); _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); struct_CameraVideoStreamFrameHeader_t_1610_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize);
return _ret; return _ret;
} }
@ -82,11 +82,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamTex
{ {
EVRTrackedCameraError _ret; EVRTrackedCameraError _ret;
CameraVideoStreamFrameHeader_t lin; CameraVideoStreamFrameHeader_t lin;
if(pFrameHeader) if (pFrameHeader)
struct_CameraVideoStreamFrameHeader_t_1610_win_to_lin(pFrameHeader, &lin); struct_CameraVideoStreamFrameHeader_t_1610_win_to_lin(pFrameHeader, &lin);
uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; 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); _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); struct_CameraVideoStreamFrameHeader_t_1610_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize);
return _ret; return _ret;
} }
@ -95,11 +95,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamTex
{ {
EVRTrackedCameraError _ret; EVRTrackedCameraError _ret;
CameraVideoStreamFrameHeader_t lin; CameraVideoStreamFrameHeader_t lin;
if(pFrameHeader) if (pFrameHeader)
struct_CameraVideoStreamFrameHeader_t_1610_win_to_lin(pFrameHeader, &lin); struct_CameraVideoStreamFrameHeader_t_1610_win_to_lin(pFrameHeader, &lin);
uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; 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); _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); struct_CameraVideoStreamFrameHeader_t_1610_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize);
return _ret; return _ret;
} }

View File

@ -62,11 +62,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_006_GetVideoStreamFra
{ {
EVRTrackedCameraError _ret; EVRTrackedCameraError _ret;
CameraVideoStreamFrameHeader_t lin; CameraVideoStreamFrameHeader_t lin;
if(pFrameHeader) if (pFrameHeader)
struct_CameraVideoStreamFrameHeader_t_1267_win_to_lin(pFrameHeader, &lin); struct_CameraVideoStreamFrameHeader_t_1267_win_to_lin(pFrameHeader, &lin);
uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; 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); _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); struct_CameraVideoStreamFrameHeader_t_1267_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize);
return _ret; return _ret;
} }
@ -82,11 +82,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_006_GetVideoStreamTex
{ {
EVRTrackedCameraError _ret; EVRTrackedCameraError _ret;
CameraVideoStreamFrameHeader_t lin; CameraVideoStreamFrameHeader_t lin;
if(pFrameHeader) if (pFrameHeader)
struct_CameraVideoStreamFrameHeader_t_1267_win_to_lin(pFrameHeader, &lin); struct_CameraVideoStreamFrameHeader_t_1267_win_to_lin(pFrameHeader, &lin);
uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; 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); _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); struct_CameraVideoStreamFrameHeader_t_1267_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize);
return _ret; return _ret;
} }
@ -95,11 +95,11 @@ EVRTrackedCameraError cppIVRTrackedCamera_IVRTrackedCamera_006_GetVideoStreamTex
{ {
EVRTrackedCameraError _ret; EVRTrackedCameraError _ret;
CameraVideoStreamFrameHeader_t lin; CameraVideoStreamFrameHeader_t lin;
if(pFrameHeader) if (pFrameHeader)
struct_CameraVideoStreamFrameHeader_t_1267_win_to_lin(pFrameHeader, &lin); struct_CameraVideoStreamFrameHeader_t_1267_win_to_lin(pFrameHeader, &lin);
uint32_t lin_nFrameHeaderSize = nFrameHeaderSize ? sizeof(lin) : 0; 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); _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); struct_CameraVideoStreamFrameHeader_t_1267_lin_to_win(&lin, pFrameHeader, nFrameHeaderSize);
return _ret; return _ret;
} }