Forum Discussion

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

Determine whether hands or controllers are currently being tracked?

Is there some sort of bool variable that determines whether hands or controllers are being tracked currently? I want the user to be handed the controllers in my virtual environment, and for something to change when that happens. Any help would be greatly appreciated, I can't find anything about this at all in the documentation or in other forums.

1 Reply

Replies have been turned off for this discussion
  • After about an hour and a half of looking through OVRPlugin and OVRInput, I finally figured it out. Basically, OVRInput.GetActiveController() will give you the most recently used OVRInput.Controller, which is an enum of controller types. So you can check if it equals OVRInput.Controller.Hands or OVRInput.Controller.Touch, or whatever you want.