Native USB networking for Quest

Requires Horizon OS >= 2.6
This commit is contained in:
Patrick Nicolas
2026-08-29 12:33:59 +02:00
parent 8333322cd2
commit 8738131fb1
21 changed files with 317 additions and 93 deletions
+16
View File
@@ -190,12 +190,28 @@ void hmd_traits::init()
{
panel_width_override = 2064; // Quest 3
controller_profile = "meta-quest-touch-plus";
usb_net = true;
}
else if (device == "panther") // Quest 3S
{
panel_width_override = 1832;
controller_profile = "meta-quest-touch-plus";
}
if (auto v = get_property("ro.hzos.build.display_name"))
{
auto digits = utils::split(*v, ".");
try
{
auto major = std::stoi(digits.at(0));
auto minor = std::stoi(digits.at(1));
usb_net = major > 2 or (major == 2 and minor >= 6);
}
catch (...)
{
spdlog::warn("Failed to parse Horizon OS version {}", *v);
}
}
}
else if (model == "Lynx-R1")