20 VR_STATUS_DISPLAY_LOST,
21 VR_STATUS_SHOULD_QUIT,
22 VR_STATUS_SHOULD_RECENTER,
24 VR_STATUS_CALIBRATING,
50 proto native
static VRDevice GetInstance();
57 proto native VRStatus GetStatusFlags();
62 proto native owned
string GetName();
67 proto native VRDeviceType GetDeviceType();
74 proto native
void RecenterHeadTracking();
79 proto native
vector GetHeadPosition();
84 proto native
vector GetHeadOrientation();
91 proto native
vector GetHandPosition(VRHand hand);
98 proto native
vector GetHandOrientation(VRHand hand);
105 proto native
vector GetEyePosition(VREye eye);
112 proto native
vector GetEyeOrientation(VREye eye);
122 proto native
void SetScale(
float scale);
127 proto native
float GetScale();
135 proto external
void GetEyeFOV(VREye eye, out
float leftTan, out
float rightTan, out
float upTan, out
float downTan);
138 enum PSVrHeadRecenterFlagsEnum
140 VR_RECENTER_POSITION,
141 VR_RECENTER_ORIENTATION
144 enum PSVrBrightnessRiskEnum
146 VR_BRIGHTNESS_RISK_LOW,
147 VR_BRIGHTNESS_RISK_HIGH,
148 VR_BRIGHTNESS_RISK_MAX
151 enum PSVrTrackingQualityEnum
153 VR_TRACKING_QUALITY_NONE,
154 VR_TRACKING_QUALITY_NOT_VISIBLE,
155 VR_TRACKING_QUALITY_PARTIAL,
156 VR_TRACKING_QUALITY_FULL
159 enum PSVrDialogStatusEnum
170 class VRDevice_PS4 : VRDevice
184 proto native
void Set2D(
bool enabled);
189 proto native
bool ShowHmdServiceDialog();
194 proto native
bool ShowHmdSetupDialog();
199 proto native PSVrDialogStatusEnum GetSetupDialogStatus();
204 proto native PSVrDialogStatusEnum GetServiceDialogStatus();
209 proto native
void SetRecenterHeadFlags(PSVrHeadRecenterFlagsEnum flags);
214 proto native PSVrHeadRecenterFlagsEnum GetRecenterHeadFlags();
219 proto native
vector GetEyeOffset(VREye eye);
226 proto native
void SetMinOutputColor(
int color);
233 proto native
void SetEyeFOV(VREye eye,
float leftTan,
float rightTan,
float upTan,
float downTan);
237 proto native
void ResetToDeviceFOV(VREye eye);
243 proto native
void SetOversamplingFactor(
float factor);
251 proto
bool GetHmdTrackingStatus( out PSVrBrightnessRiskEnum bRisk,
252 out PSVrTrackingQualityEnum posQuality,
253 out PSVrTrackingQualityEnum orQuality);
263 proto
bool GetMoveTrackingStatus( VRHand hand,
264 out PSVrBrightnessRiskEnum bRisk,
265 out PSVrTrackingQualityEnum posQuality,
266 out PSVrTrackingQualityEnum orQuality);
272 class Oculus : VRDevice