Skip to content

Commit

Permalink
Lua: Bind rest of UEVR_VRData
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Jul 5, 2024
1 parent b05ade4 commit c1c7f31
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion lua-api/lib/src/ScriptContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,24 @@ int ScriptContext::setup_bindings() {
"get_aim_method", &UEVR_VRData::get_aim_method,
"set_aim_method", &UEVR_VRData::set_aim_method,
"is_aim_allowed", &UEVR_VRData::is_aim_allowed,
"set_aim_allowed", &UEVR_VRData::set_aim_allowed
"set_aim_allowed", &UEVR_VRData::set_aim_allowed,
"get_hmd_width", &UEVR_VRData::get_hmd_width,
"get_hmd_height", &UEVR_VRData::get_hmd_height,
"get_ui_width", &UEVR_VRData::get_ui_width,
"get_ui_height", &UEVR_VRData::get_ui_height,
"is_snap_turn_enabled", &UEVR_VRData::is_snap_turn_enabled,
"set_snap_turn_enabled", &UEVR_VRData::set_snap_turn_enabled,
"set_decoupled_pitch_enabled", &UEVR_VRData::set_decoupled_pitch_enabled,
"set_mod_value", &UEVR_VRData::set_mod_value,
"get_mod_value", [](UEVR_VRData& self, const char* name) {
std::string out{};
out.resize(256);

self.get_mod_value(name, out.data(), out.size());
return out;
},
"save_config", &UEVR_VRData::save_config,
"reload_config", &UEVR_VRData::reload_config
);

// TODO: Add operators to these types
Expand Down

0 comments on commit c1c7f31

Please sign in to comment.