mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-06-12 21:27:47 +02:00
vrclient: Pass Linux struct size to Linux GetControllerState
This commit is contained in:
@ -266,7 +266,9 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e
|
||||
if do_lin_to_win and do_lin_to_win[1] == param.spelling or \
|
||||
do_wrap and do_wrap[1] == param.spelling:
|
||||
cpp.write("&lin")
|
||||
if do_lin_to_win and do_lin_to_win[0] == "VREvent_t":
|
||||
if do_lin_to_win and \
|
||||
(do_lin_to_win[0] == "VREvent_t" or \
|
||||
do_lin_to_win[0] == "VRControllerState001_t"):
|
||||
next_is_size = True
|
||||
elif do_unwrap and do_unwrap[1] == param.spelling:
|
||||
cpp.write("struct_%s_%s_unwrap(%s)" % (strip_ns(do_unwrap[0]), display_sdkver(sdkver), do_unwrap[1]))
|
||||
|
Reference in New Issue
Block a user