aboutsummaryrefslogtreecommitdiff
path: root/src/camera.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2015-06-17 19:56:52 +0200
committerraysan5 <raysan5@gmail.com>2015-06-17 19:56:52 +0200
commit024e48850e82ff466d1712227bcddbb8a5b627bb (patch)
treec6cb2e1c367c99150cbea423acffeb4983667b52 /src/camera.c
parent9572d6c0632fae001481d8395e8e6f154aaf4a4c (diff)
downloadraylib-024e48850e82ff466d1712227bcddbb8a5b627bb.tar.gz
raylib-024e48850e82ff466d1712227bcddbb8a5b627bb.zip
Corrected camera issue and added function
Diffstat (limited to 'src/camera.c')
-rw-r--r--src/camera.c31
1 files changed, 5 insertions, 26 deletions
diff --git a/src/camera.c b/src/camera.c
index b016308e..cb99ba6b 100644
--- a/src/camera.c
+++ b/src/camera.c
@@ -162,7 +162,7 @@ static void ProcessCamera(Camera *camera, Vector3 *playerPosition)
{
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB) || defined(PLATFORM_RPI)
// Mouse movement detection
- if (cameraMode != CAMERA_FREE)
+ if ((cameraMode != CAMERA_FREE) && (cameraMode != CAMERA_ORBITAL))
{
HideCursor();
@@ -449,28 +449,7 @@ void SetSmoothZoomControl(int smoothZoomControlKey)
smoothZoomControllingKey = smoothZoomControlKey;
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+void SetOrbitalTarget(Vector3 target)
+{
+ internalCamera.target = target;
+}