-
- if(!dx && !dy) return;
-
- if(bnstate[0]) {
- camera->theta += dx * 0.5;
- camera->phi += dy * 0.5;
-
- if(camera->phi < -90) camera->phi = -90;
- if(camera->phi > 90) camera->phi = 90;
- }
- if(bnstate[2]) {
- camera->distance += dy * 0.1;
- if(camera->distance < 0.0) camera->distance = 0.0;
- }