Skip to content

Commit

Permalink
InputManager: Fix incorrect action handle being used for the gamepad …
Browse files Browse the repository at this point in the history
…and remote.
  • Loading branch information
CrossVR committed Mar 17, 2019
1 parent 6bb5a54 commit 738032e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Revive/InputManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ InputManager::InputManager()
LoadActionManifest();

vr::VRActionSetHandle_t handle;
vr::EVRInputError err = vr::VRInput()->GetActionSetHandle("/actions/touch", &handle);
vr::EVRInputError err = vr::VRInput()->GetActionSetHandle("/actions/xbox", &handle);
if (err == vr::VRInputError_None)
m_InputDevices.push_back(new XboxGamepad(handle));
err = vr::VRInput()->GetActionSetHandle("/actions/touch", &handle);
err = vr::VRInput()->GetActionSetHandle("/actions/remote", &handle);
if (err == vr::VRInputError_None)
m_InputDevices.push_back(new OculusRemote(handle));
err = vr::VRInput()->GetActionSetHandle("/actions/touch", &handle);
Expand Down

0 comments on commit 738032e

Please sign in to comment.