deleteed OnWheel at CameraAppFramework

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

View File

@@ -350,7 +350,7 @@ protected:
Vector2f pos(x,y);
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;
mouse_last_pos=Vector2f(x,y);
@@ -359,12 +359,6 @@ protected:
return(true);
}
bool OnWheel(int x,int y)
{
camera->Distance(y>1.0f?1.1f:0.9f);
return(true);
}
public:
CameraMouseControl(FirstPersonCameraControl *wc)