vrclient: Pass Linux struct size to Linux GetControllerState

This commit is contained in:
Andrew Eikum
2018-02-02 10:59:21 -06:00
parent 68443426f9
commit 6b5f94f2ef
9 changed files with 16 additions and 14 deletions

View File

@ -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]))