Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Invert horizontal scrolling for Oculus Quest joystick (#2343)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and bluemarvin committed Nov 22, 2019
1 parent c092f04 commit 7b66fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/oculusvr/cpp/DeviceDelegateOculusVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ struct DeviceDelegateOculusVR::State {
trackpadY = controllerState.inputState.Joystick.y;
axes[0] = trackpadX;
axes[1] = -trackpadY; // We did y axis intentionally inverted in FF desktop as well.
controller->SetScrolledDelta(controllerState.index, trackpadX, trackpadY);
controller->SetScrolledDelta(controllerState.index, -trackpadX, trackpadY);

const bool gripPressed = (controllerState.inputState.Buttons & ovrButton_GripTrigger) != 0;
controller->SetButtonState(controllerState.index, ControllerDelegate::BUTTON_OTHERS, 2, gripPressed, gripPressed,
Expand Down

0 comments on commit 7b66fb1

Please sign in to comment.