Skip to content

Commit

Permalink
Enable volume buttons on Oculus Go. Fixes #713 (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin authored and MortimerGoro committed Nov 16, 2018
1 parent 54f045e commit 803f618
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/oculusvr/cpp/DeviceDelegateOculusVR.cpp
Expand Up @@ -166,6 +166,10 @@ struct DeviceDelegateOculusVR::State {

// Send the remote back button java events to the apps
vrapi_SetPropertyInt(&java, VRAPI_BLOCK_REMOTE_BUTTONS_WHEN_NOT_EMULATING_HMT, 0);
// This needs to be set to 0 so that the volume buttons work. I'm not sure why since the
// docs in the header indicate that setting this to false (0) means you have to
// handle the gamepad events yourself.
vrapi_SetPropertyInt(&java, VRAPI_EAT_NATIVE_GAMEPAD_EVENTS, 0);
// Reorient the headset after controller recenter.
vrapi_SetPropertyInt(&java, VRAPI_REORIENT_HMD_ON_CONTROLLER_RECENTER, 1);
}
Expand Down

0 comments on commit 803f618

Please sign in to comment.