Skip to content

Commit c74ddaf

Browse files
committed
Use the orientation of the focused controller to move windows
This was the original intention but instead of checking the focused property of the controllers we're using enabled. If both hands or controllers were used the the first one (the right one) was always selected because it was the first enabled one in the list (but not the only one). Fixes #1885
1 parent e2a964b commit c74ddaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/cpp/BrowserWorld.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ BrowserWorld::ProcessOVRPlatformEvents() {
11621162
vrb::Matrix
11631163
BrowserWorld::GetActiveControllerOrientation() const {
11641164
for (Controller& controller: m.controllers->GetControllers()) {
1165-
if (controller.enabled)
1165+
if (controller.focused)
11661166
return controller.transform->GetTransform();
11671167
}
11681168
return vrb::Matrix::Identity();

0 commit comments

Comments
 (0)