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

Commit

Permalink
Update to Oculus SDK 1.17 (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and bluemarvin committed Sep 24, 2018
1 parent dee6f42 commit 0d4af3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/oculusvr/cpp/DeviceDelegateOculusVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,10 @@ struct DeviceDelegateOculusVR::State {
const bool triggerPressed = (controllerState.Buttons & ovrButton_A) != 0;
const bool trackpadPressed = (controllerState.Buttons & ovrButton_Enter) != 0;
const bool trackpadTouched = (bool) controllerState.TrackpadStatus;
const bool backPressed = (controllerState.Buttons & ovrButton_Back) != 0;
controller->SetButtonState(0, ControllerDelegate::BUTTON_TRIGGER, 1, triggerPressed, triggerPressed);
controller->SetButtonState(0, ControllerDelegate::BUTTON_TOUCHPAD, 0, trackpadPressed, trackpadTouched);
controller->SetButtonState(0, ControllerDelegate::BUTTON_APP, -1, backPressed, backPressed);

const float trackpadX = controllerState.TrackpadPosition.x / (float)controllerCapabilities.TrackpadMaxX;
const float trackpadY = controllerState.TrackpadPosition.y / (float)controllerCapabilities.TrackpadMaxY;
Expand Down Expand Up @@ -541,7 +543,7 @@ DeviceDelegateOculusVR::EnterVR(const crow::BrowserEGLContext& aEGLContext) {
vrapi_SetPerfThread(m.ovr, VRAPI_PERF_THREAD_TYPE_RENDERER, gettid());
}

//vrapi_SetRemoteEmulation(m.ovr, false);
vrapi_SetRemoteEmulation(m.ovr, false);
}

void
Expand Down

0 comments on commit 0d4af3a

Please sign in to comment.