Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
vr_marco's avatar
vr_marco
Expert Protege
8 years ago

[SOLVED] Input from Oculus remote not working in 4.17.1 - OVRPlugin 1.1.50

Anyone knows why I cannot get anymore the input from the Oculus Remote to be recognized in UE4 4.17.1 with OVRPlugin 1.15.0? It used to work properly in GamePad emulation mode (default behavior) with previous UE4 versions, but now it is no longer recognized.

I know the remote works properly because the Oculus button takes me back to the Oculus activity screen, but none of the other buttons seems to be properly recognized from within Unreal.

We have mission critical applications requiring someone else to operate the remote while the player is in VR so it is crucial that we can solve this. 

Thanks!
Marco. 

EDIT: by the way, I have the same with the OVRPlugin 1.17.0 and 1.18.0 (editor built from the Oculus branch on GitHub).

EDIT2: I just tested our released applications on 4.15 and they still work properly with the Oculus Remote, so this is something 4.17 (and possibly 4.16) specific. Has nothing to do with the Oculus service but seems to be UE4 related. Help anyone?

1 Reply

Replies have been turned off for this discussion
  • vr_marco's avatar
    vr_marco
    Expert Protege
    Ok, found and fixed the problem myself. There is a bug in OculusInput.cpp which prevents the button state from the remote from being recognized and passed on to the engine.

    Line 182 is: OvrpControllerState.ConnectedControllerTypes == ovrpController_Remote)
    And should be changed to: (OvrpControllerState.ConnectedControllerTypes & ovrpController_Remote) != 0 )

    With this modification the input from the Oculus Remote is correctly recognized and processed.

    I have fixed it and created a Pull Request for it: https://github.com/Oculus-VR/UnrealEngine/pull/12

    Cheers,
    Marco.