From be504b5944459a26f8976b224187be1b6d746e2a Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Sun, 6 Jul 2025 09:42:34 +0200 Subject: [PATCH] Add controller offset for Quest 3 --- client/hardware.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/client/hardware.cpp b/client/hardware.cpp index c558deff..745be7bf 100644 --- a/client/hardware.cpp +++ b/client/hardware.cpp @@ -348,6 +348,24 @@ std::pair controller_offset(std::string_view profile, xr:: default: break; } + else if (profile == "meta-quest-touch-plus") + { + switch (space) + { + case xr::spaces::grip_left: + case xr::spaces::grip_right: + return {{0, -0.010, -0.025}, glm::angleAxis(glm::radians(-12.f), glm::vec3{1, 0, 0})}; + + case xr::spaces::aim_left: + return {{0, 0, 0.03}, {1, 0, 0, 0}}; + + case xr::spaces::aim_right: + return {{0, 0, 0.03}, {1, 0, 0, 0}}; + + default: + break; + } + } else if (profile == "htc-vive-focus-3") switch (space) {