diff options
author | aap <aap@papnet.eu> | 2020-12-03 09:34:09 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-12-03 09:34:09 +0100 |
commit | 3c24505990a9a71210b2328c366b43e6f2fd94bc (patch) | |
tree | 6a9dd4d36ee8d3e264973f646944e27965f288ad /src/core/Cam.cpp | |
parent | bla (diff) | |
download | re3-3c24505990a9a71210b2328c366b43e6f2fd94bc.tar re3-3c24505990a9a71210b2328c366b43e6f2fd94bc.tar.gz re3-3c24505990a9a71210b2328c366b43e6f2fd94bc.tar.bz2 re3-3c24505990a9a71210b2328c366b43e6f2fd94bc.tar.lz re3-3c24505990a9a71210b2328c366b43e6f2fd94bc.tar.xz re3-3c24505990a9a71210b2328c366b43e6f2fd94bc.tar.zst re3-3c24505990a9a71210b2328c366b43e6f2fd94bc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/Cam.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp index 08ebbafd..b20e6db3 100644 --- a/src/core/Cam.cpp +++ b/src/core/Cam.cpp @@ -4014,6 +4014,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; |