GodotVR / godot_oculus_mobile

Godot Oculus mobile drivers (Oculus Go / Oculus Quest)
MIT License
169 stars 34 forks source link

Add focus awareness support #98

Closed m4gr3d closed 4 years ago

m4gr3d commented 4 years ago

Fixes issue #92

Part 1 of the implementation. The second part needs to happen in the Godot engine, and involve adding an export option for focus awareness support.

m4gr3d commented 4 years ago

The focus awareness one is tricky to test since according to the documentation, it requires that the app be approved by Oculus for access to the api on the headset. If the app is approved, then the home menu does appear in the app and the events are dispatched synchronously. Otherwise, the app exits to the home menu as usual, and the events are only dispatched when the user gets back to it.

Nonetheless, having the implementation makes us future-proof in case they decide to expand its access.