deleteed OnWheel at CameraAppFramework
This commit is contained in:
parent
c11f0cde66
commit
31af8cc92b
2
CMCore
2
CMCore
@ -1 +1 @@
|
||||
Subproject commit d370342a981009fe9384bfb95517e9b0874a1c55
|
||||
Subproject commit 9a74f1722c9bace16ecc6801da59b1316112f548
|
@ -1 +1 @@
|
||||
Subproject commit 2a995f47f5cac7b721ca3ceeb2d14a4dd2affb6f
|
||||
Subproject commit 92eb68e7d030055287c97c3f31c3b1a822ab25d0
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user