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

Invert horizontal scrolling #2343

Merged
merged 1 commit into from
Nov 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
Comment on lines 1026 to +1028
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's weird that we invert Y for immersive and X for browsing.


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