Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
tmason101's avatar
tmason101
Honored Guest
10 years ago

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

  • 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.
  • "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.