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

Commit

Permalink
Replace Oculus 6DOF immersive exit btn to Menu btn. (#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
daoshengmu authored and bluemarvin committed Mar 14, 2019
1 parent e7339dd commit ab033b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/oculusvr/cpp/DeviceDelegateOculusVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -869,8 +869,9 @@ struct DeviceDelegateOculusVR::State {
const bool xTouched = (state[i].controllerState.Touches & ovrTouch_X) != 0;
const bool yPressed = (state[i].controllerState.Buttons & ovrButton_Y) != 0;
const bool yTouched = (state[i].controllerState.Touches & ovrTouch_Y) != 0;
const bool menuPressed = (state[i].controllerState.Buttons & ovrButton_Enter) != 0;

controller->SetButtonState(i, ControllerDelegate::BUTTON_APP, -1, yPressed, yTouched);
controller->SetButtonState(i, ControllerDelegate::BUTTON_APP, -1, menuPressed, menuPressed);
controller->SetButtonState(i, ControllerDelegate::BUTTON_OTHERS, 3, xPressed, xTouched);
controller->SetButtonState(i, ControllerDelegate::BUTTON_OTHERS, 4, yPressed, yTouched);
} else if (state[i].hand == ElbowModel::HandEnum::Right) {
Expand All @@ -879,7 +880,6 @@ struct DeviceDelegateOculusVR::State {
const bool bPressed = (state[i].controllerState.Buttons & ovrButton_B) != 0;
const bool bTouched = (state[i].controllerState.Touches & ovrTouch_B) != 0;

controller->SetButtonState(i, ControllerDelegate::BUTTON_APP, -1, bPressed, bTouched);
controller->SetButtonState(i, ControllerDelegate::BUTTON_OTHERS, 3, aPressed, aTouched);
controller->SetButtonState(i, ControllerDelegate::BUTTON_OTHERS, 4, bPressed, bTouched);
} else {
Expand Down

0 comments on commit ab033b4

Please sign in to comment.