diff options
| author | raysan5 <[email protected]> | 2016-11-18 14:05:49 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2016-11-18 14:05:49 +0100 |
| commit | 0603e59cae0da924d7fe811b078972e04cdfe1e9 (patch) | |
| tree | 55aff2d0cb67ee60018911ecf04d0b1be25dd722 /examples/core_oculus_rift.c | |
| parent | 6b072e696d1b2b029ec1c8464ed22bf7ab65e5ee (diff) | |
| download | raylib-0603e59cae0da924d7fe811b078972e04cdfe1e9.tar.gz raylib-0603e59cae0da924d7fe811b078972e04cdfe1e9.zip | |
Review examples and added new ones
Diffstat (limited to 'examples/core_oculus_rift.c')
| -rw-r--r-- | examples/core_oculus_rift.c | 6 |
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 |
