Document adb setprop usage for hmd_traits
This commit is contained in:
@@ -57,7 +57,7 @@ static std::optional<std::string> get_property(const char * property)
|
||||
static std::optional<std::string> 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_";
|
||||
|
||||
@@ -33,6 +33,15 @@ using hmd_permissions = magic_enum::containers::array<feature, const char *>;
|
||||
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{};
|
||||
|
||||
Reference in New Issue
Block a user