deleteed OnWheel at CameraAppFramework

This commit is contained in:
hyzboy 2022-01-27 10:48:20 +08:00
parent c11f0cde66
commit 31af8cc92b
3 changed files with 3 additions and 9 deletions

2
CMCore

@ -1 +1 @@
Subproject commit d370342a981009fe9384bfb95517e9b0874a1c55 Subproject commit 9a74f1722c9bace16ecc6801da59b1316112f548

@ -1 +1 @@
Subproject commit 2a995f47f5cac7b721ca3ceeb2d14a4dd2affb6f Subproject commit 92eb68e7d030055287c97c3f31c3b1a822ab25d0

View File

@ -350,7 +350,7 @@ protected:
Vector2f pos(x,y); Vector2f pos(x,y);
Vector2f gap=pos-mouse_last_pos; Vector2f gap=pos-mouse_last_pos;
camera->Rotate(gap,(cur_time-last_time)*5); camera->Rotate(gap/180.0f,(cur_time-last_time)*5);
last_time=cur_time; last_time=cur_time;
mouse_last_pos=Vector2f(x,y); mouse_last_pos=Vector2f(x,y);
@ -359,12 +359,6 @@ protected:
return(true); return(true);
} }
bool OnWheel(int x,int y)
{
camera->Distance(y>1.0f?1.1f:0.9f);
return(true);
}
public: public:
CameraMouseControl(FirstPersonCameraControl *wc) CameraMouseControl(FirstPersonCameraControl *wc)