bjornblissing / osgoculusviewer

An OsgViewer with support for the Oculus Rift
Other
106 stars 67 forks source link

Use Oculus SDK functions to time Oculus Health and Safety Warnings #37

Closed bjornblissing closed 9 years ago

bjornblissing commented 9 years ago

The Oculus SDK contains functions for handling the timing of appropriate display time of the Oculus Health and Safety Warnings.

ovrHmd_GetHSWDisplayState() starts the time and returns the current state. ovrHmd_DismissHSWDisplay() tries to dismiss the warning. Returns false if the warning time is not reached.