Document adb setprop usage for hmd_traits

This commit is contained in:
Patrick Nicolas
2026-07-05 11:59:57 +02:00
parent 6ad8f4546b
commit 9935203cfb
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -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_";
+9
View File
@@ -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{};