summaryrefslogtreecommitdiffstats
path: root/src/core/Cam.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-03 11:30:46 +0100
committeraap <aap@papnet.eu>2020-12-03 11:30:46 +0100
commit0d166081ad3a8691e54dc3256e46ba7768338da3 (patch)
tree1012f044dcffeae228e9235dc6c4da0b1981ace7 /src/core/Cam.cpp
parentMerge pull request #863 from erorcun/miami (diff)
downloadre3-0d166081ad3a8691e54dc3256e46ba7768338da3.tar
re3-0d166081ad3a8691e54dc3256e46ba7768338da3.tar.gz
re3-0d166081ad3a8691e54dc3256e46ba7768338da3.tar.bz2
re3-0d166081ad3a8691e54dc3256e46ba7768338da3.tar.lz
re3-0d166081ad3a8691e54dc3256e46ba7768338da3.tar.xz
re3-0d166081ad3a8691e54dc3256e46ba7768338da3.tar.zst
re3-0d166081ad3a8691e54dc3256e46ba7768338da3.zip
Diffstat (limited to 'src/core/Cam.cpp')
-rw-r--r--src/core/Cam.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp
index 7560a86e..bc01b58e 100644
--- a/src/core/Cam.cpp
+++ b/src/core/Cam.cpp
@@ -4125,6 +4125,12 @@ CCam::Process_ModelView(const CVector &CameraTarget, float, float, float)
Distance += CPad::GetPad(0)->GetLeftStickY()/1000.0f;
else
Distance += CPad::GetPad(0)->GetLeftStickY() * ((Distance - 10.0f)/20.0f + 1.0f) / 1000.0f;
+#ifdef IMPROVED_CAMERA
+ if(CPad::GetPad(0)->GetLeftMouse()){
+ Distance += DEGTORAD(CPad::GetPad(0)->GetMouseY()/2.0f);
+ Angle += DEGTORAD(CPad::GetPad(0)->GetMouseX()/2.0f);
+ }
+#endif
if(Distance < 1.5f)
Distance = 1.5f;