AI-generated Key Takeaways
-
Event.EventTypedefines constants representing different VR events, such as head tracking and safety region status changes. -
These constants are used to identify the type of event that has occurred within the VR environment.
-
Key events include
HEAD_TRACKING_PAUSED,HEAD_TRACKING_RESUMED,RECENTER,SAFETY_REGION_ENTER, andSAFETY_REGION_EXIT. -
Developers can use these event types to trigger actions or modify behavior within their VR applications based on user interactions and system states.
Constants that represent the type of an Event.
Constants
| int | HEAD_TRACKING_PAUSED | Notification that head tracking was paused. |
| int | HEAD_TRACKING_RESUMED | Notification that head tracking was resumed (or started for the first time). |
| int | RECENTER | Notification that a global recentering event has occurred. |
| int | SAFETY_REGION_ENTER | Notification that the user has re-entered the safety region, as defined by the Properties.SafetyRegionType. |
| int | SAFETY_REGION_EXIT | Notification that the user has exited the safety region, as defined by the Properties.SafetyRegionType. |
Inherited Methods
Constants
public static final int HEAD_TRACKING_PAUSED
Notification that head tracking was paused.
public static final int HEAD_TRACKING_RESUMED
Notification that head tracking was resumed (or started for the first time). Before this
event is sent, head tracking will always return the identity pose. This event is usually
preceded in the same frame by a RECENTER event of RESTART.
public static final int RECENTER
Notification that a global recentering event has occurred.
public static final int SAFETY_REGION_ENTER
Notification that the user has re-entered the safety region, as defined by the Properties.SafetyRegionType.
public static final int SAFETY_REGION_EXIT
Notification that the user has exited the safety region, as defined by the Properties.SafetyRegionType.