From 281dd6000ed843605c24ec3abe766e72e2e31042 Mon Sep 17 00:00:00 2001 From: perillamint Date: Mon, 8 Dec 2025 22:51:04 +0900 Subject: [PATCH] Fix GalaxyXR controller offset Fix GalaxyXR controller offset to controller model properly overlap the passthrough image --- client/hardware.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/hardware.cpp b/client/hardware.cpp index 2202d4c5..511e062e 100644 --- a/client/hardware.cpp +++ b/client/hardware.cpp @@ -426,6 +426,16 @@ std::pair controller_offset(std::string_view profile, xr:: default: break; } + else if (profile == "samsung-galaxyxr") + switch (space) + { + case xr::spaces::grip_left: + return {{-0.005, 0.000, 0.035}, {1, 0, 0, 0}}; + case xr::spaces::grip_right: + return {{0.005, 0.000, 0.035}, {1, 0, 0, 0}}; + default: + break; + } return {{0, 0, 0}, {1, 0, 0, 0}}; }