mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-15 14:15:24 -06:00
SurfaceCtrl: fixing return issue, and left mouse handler
git-svn-id: svn://ultimatepp.org/upp/trunk@14779 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
4ed2726841
commit
92dec7f0a2
3 changed files with 3 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ class SketchupCamera : public UOGL_Camera {
|
|||
virtual SketchupCamera& ProcessMouveMouvement(float xoffset, float yoffset){
|
||||
if(MouseMiddlePressed) return ProcessMouseWheelMouvement(xoffset,yoffset);
|
||||
if(MouseLeftPressed) return ProcessMouseLeftMouvement(xoffset,yoffset);
|
||||
return *this;
|
||||
}
|
||||
|
||||
virtual bool ProcessKeyBoard(unsigned long Key,int count){
|
||||
|
|
|
|||
|
|
@ -242,6 +242,7 @@ void SurfaceCtrl::MiddleUp(Point p, dword keyflags){
|
|||
}
|
||||
void SurfaceCtrl::MouseLeave(){
|
||||
camera.MouseMiddlePressed = false;
|
||||
camera.MouseLeftPressed = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
@ -141,6 +141,7 @@ class TrackBallCamera : public UOGL_Camera {
|
|||
virtual TrackBallCamera& ProcessMouveMouvement(float xoffset, float yoffset){
|
||||
if(MouseMiddlePressed) return ProcessMouseWheelMouvement(xoffset,yoffset);
|
||||
if(MouseLeftPressed) return ProcessMouseLeftMouvement(xoffset,yoffset);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue