Skip to content

Commit

Permalink
Invert horizontal scrolling for Oculus Quest joystick (MozillaReality…
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and Alexandre Lissy committed Jan 21, 2020
1 parent a277e02 commit fc761ee
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 fc761ee

Please sign in to comment.