Forum Discussion
tmason101
10 years agoHonored Guest
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.
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
- jhericoAdventurerThere'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.
- tmason101Honored Guest
"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.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago
- 1 year agoAnonymous
- 2 years ago