Skip to main content
Up and Coming
January 27, 2015

Detecting the Rift after Application startup when plugged in

Hello,

So I am curious about whether any devs on here run detection on their apps when an Oculus Rift is plugged in after their application starts up.

Basically, my application can detect the Rift after a user-initiated action or when the application itself starts up but I am wondering if folks have written code that allows then to detect the Rift when it is plugged in after app startup.

Makes sense?

Thank you for your time.

    2 replies

    Inspiring
    January 27, 2015
    There's no event or callback mechanism in the C API, so you'd either have to occasionally poll ovr_detectHmds() or write some platform specific code to detect the USB device being plugged in.
    Brad Davis - Developer for High Fidelity Co-author of Oculus Rift in Action
    tmason101Author
    Up and Coming
    January 27, 2015
    "jherico" wrote:
    There's no event or callback mechanism in the C API, so you'd either have to occasionally poll ovr_detectHmds() or write some platform specific code to detect the USB device being plugged in.


    OK, thanks. I'll have this running over a timer then. Is running this simple background process every second a good idea?

    Thank you.