diff --git a/client/hmd_traits.cpp b/client/hmd_traits.cpp index 4d732323..9655186d 100644 --- a/client/hmd_traits.cpp +++ b/client/hmd_traits.cpp @@ -57,7 +57,7 @@ static std::optional get_property(const char * property) static std::optional env_string(std::string_view name) { #ifdef __ANDROID__ - auto android_sysprop_name = std::format("wivrn.debug.{}", name); + auto android_sysprop_name = std::format("debug.wivrn.{}", name); return get_property(android_sysprop_name.c_str()); #else std::string env_name = "WIVRN_"; diff --git a/client/hmd_traits.h b/client/hmd_traits.h index fe779f02..130561f6 100644 --- a/client/hmd_traits.h +++ b/client/hmd_traits.h @@ -33,6 +33,15 @@ using hmd_permissions = magic_enum::containers::array; class hmd_traits { public: + // Properties have the defaults below + // The cpp file has per-headset values + // it is possible to override values: + // on Android: + // adb setprop debug.wivrn.{property-name} {property-value} + // i.e. adb setprop debug.wivrn.view_locate false + // on Linux: + // export WIVRN_{PROPERTY-NAME}={property-value} + // i.e. export WIVRN_VIEW_LOCATE=false std::string controller_profile = "generic-trigger-squeeze"; std::string controller_ray_model = "assets://ray.glb"; hmd_permissions permissions{};