summaryrefslogtreecommitdiffhomepage
path: root/examples/core_oculus_rift.c
diff options
context:
space:
mode:
authorRay <[email protected]>2016-11-24 17:26:07 +0100
committerGitHub <[email protected]>2016-11-24 17:26:07 +0100
commit17f09cb03484a408cdd50a3d2e4d6604bb1f4c70 (patch)
tree51e909c419de9625f1beaaca44696857a600e8d5 /examples/core_oculus_rift.c
parent05f68c22d5c8d8f7c4254ae47700318e21709887 (diff)
parenta81dfabf863c512044b246e23aaf43489d2fa1ac (diff)
downloadraylib-1.6.0.tar.gz
raylib-1.6.0.zip
Merge pull request #198 from raysan5/develop1.6.0
Develop branch integration
Diffstat (limited to 'examples/core_oculus_rift.c')
-rw-r--r--examples/core_oculus_rift.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/core_oculus_rift.c b/examples/core_oculus_rift.c
index 7276e3de..eb628cd7 100644
--- a/examples/core_oculus_rift.c
+++ b/examples/core_oculus_rift.c
@@ -47,10 +47,10 @@ int main()
{
// Update
//----------------------------------------------------------------------------------
- if (IsVrSimulator()) UpdateCamera(&camera); // Update camera (simulator mode)
- else UpdateVrTracking(&camera); // Update camera with device tracking data
+ if (IsVrSimulator()) UpdateCamera(&camera); // Update camera (simulator mode)
+ else if (IsVrDeviceReady()) UpdateVrTracking(&camera); // Update camera with device tracking data
- if (IsKeyPressed(KEY_SPACE)) ToggleVrMode(); // Toggle VR mode
+ if (IsKeyPressed(KEY_SPACE)) ToggleVrMode(); // Toggle VR mode
//----------------------------------------------------------------------------------
// Draw