Skip to content

Commit 06a0a86

Browse files
committed
Horizontal scrolling behaviour inverted from vertical scrolling
Whatever scrolling mode you select (either natural or reversed) the behaviour of the X axis was inverted wrt the Y axis. This change makes them behave the same. Fixes #1903
1 parent b7c8d9b commit 06a0a86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/openxr/cpp/OpenXRInputSource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ void OpenXRInputSource::Update(const XrFrameState& frameState, XrSpace localSpac
10211021
} else if (axis.type == OpenXRAxisType::Thumbstick) {
10221022
axesContainer[device::kImmersiveAxisThumbstickX] = state->x;
10231023
axesContainer[device::kImmersiveAxisThumbstickY] = -state->y;
1024-
delegate.SetScrolledDelta(mIndex, state->x, state->y);
1024+
delegate.SetScrolledDelta(mIndex, -state->x, state->y);
10251025
} else {
10261026
axesContainer.push_back(state->x);
10271027
axesContainer.push_back(-state->y);

0 commit comments

Comments
 (0)